mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
refactor VCMIDirsIOS::dataPaths()
This commit is contained in:
@ -398,14 +398,16 @@ bfs::path VCMIDirsIOS::userLogsPath() const { return {ios_documentsPath()}; }
|
|||||||
|
|
||||||
std::vector<bfs::path> VCMIDirsIOS::dataPaths() const
|
std::vector<bfs::path> VCMIDirsIOS::dataPaths() const
|
||||||
{
|
{
|
||||||
return {
|
std::vector<bfs::path> paths;
|
||||||
|
paths.reserve(4);
|
||||||
#ifdef VCMI_IOS_SIM
|
#ifdef VCMI_IOS_SIM
|
||||||
{ios_hostApplicationSupportPath()},
|
paths.emplace_back(ios_hostApplicationSupportPath());
|
||||||
#endif
|
#endif
|
||||||
{ios_sharedDataPath()},
|
if (auto sharedDataPath = ios_sharedDataPath())
|
||||||
binaryPath(),
|
paths.emplace_back(sharedDataPath);
|
||||||
userDataPath(),
|
paths.emplace_back(binaryPath());
|
||||||
};
|
paths.emplace_back(userDataPath());
|
||||||
|
return paths;
|
||||||
}
|
}
|
||||||
|
|
||||||
bfs::path VCMIDirsIOS::libraryPath() const { return {ios_frameworksPath()}; }
|
bfs::path VCMIDirsIOS::libraryPath() const { return {ios_frameworksPath()}; }
|
||||||
|
Reference in New Issue
Block a user