mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
use shared path as user data when available
This commit is contained in:
@@ -388,11 +388,9 @@ class VCMIDirsIOS final : public VCMIDirsApple
|
|||||||
|
|
||||||
bfs::path libraryPath() const override;
|
bfs::path libraryPath() const override;
|
||||||
bfs::path binaryPath() const override;
|
bfs::path binaryPath() const override;
|
||||||
|
|
||||||
bool developmentMode() const override;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
bfs::path VCMIDirsIOS::userDataPath() const { return {ios_documentsPath()}; }
|
bfs::path VCMIDirsIOS::userDataPath() const { return {ios_sharedDataPath() ?: ios_documentsPath()}; }
|
||||||
bfs::path VCMIDirsIOS::userCachePath() const { return {ios_cachesPath()}; }
|
bfs::path VCMIDirsIOS::userCachePath() const { return {ios_cachesPath()}; }
|
||||||
bfs::path VCMIDirsIOS::userLogsPath() const { return {ios_documentsPath()}; }
|
bfs::path VCMIDirsIOS::userLogsPath() const { return {ios_documentsPath()}; }
|
||||||
|
|
||||||
@@ -403,17 +401,14 @@ std::vector<bfs::path> VCMIDirsIOS::dataPaths() const
|
|||||||
#ifdef VCMI_IOS_SIM
|
#ifdef VCMI_IOS_SIM
|
||||||
paths.emplace_back(ios_hostApplicationSupportPath());
|
paths.emplace_back(ios_hostApplicationSupportPath());
|
||||||
#endif
|
#endif
|
||||||
if (auto sharedDataPath = ios_sharedDataPath())
|
|
||||||
paths.emplace_back(sharedDataPath);
|
|
||||||
paths.emplace_back(binaryPath());
|
|
||||||
paths.emplace_back(userDataPath());
|
paths.emplace_back(userDataPath());
|
||||||
|
paths.emplace_back(ios_documentsPath());
|
||||||
|
paths.emplace_back(binaryPath());
|
||||||
return paths;
|
return paths;
|
||||||
}
|
}
|
||||||
|
|
||||||
bfs::path VCMIDirsIOS::libraryPath() const { return {ios_frameworksPath()}; }
|
bfs::path VCMIDirsIOS::libraryPath() const { return {ios_frameworksPath()}; }
|
||||||
bfs::path VCMIDirsIOS::binaryPath() const { return {ios_bundlePath()}; }
|
bfs::path VCMIDirsIOS::binaryPath() const { return {ios_bundlePath()}; }
|
||||||
|
|
||||||
bool VCMIDirsIOS::developmentMode() const { return false; }
|
|
||||||
#elif defined(VCMI_MAC)
|
#elif defined(VCMI_MAC)
|
||||||
class VCMIDirsOSX final : public VCMIDirsApple
|
class VCMIDirsOSX final : public VCMIDirsApple
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user