1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

refactor VCMIDirsIOS::dataPaths()

This commit is contained in:
Andrey Filipenkov 2021-04-19 03:34:13 +03:00
parent bb9d19deee
commit 821672a1a4

View File

@ -398,14 +398,16 @@ bfs::path VCMIDirsIOS::userLogsPath() const { return {ios_documentsPath()}; }
std::vector<bfs::path> VCMIDirsIOS::dataPaths() const
{
return {
std::vector<bfs::path> paths;
paths.reserve(4);
#ifdef VCMI_IOS_SIM
{ios_hostApplicationSupportPath()},
paths.emplace_back(ios_hostApplicationSupportPath());
#endif
{ios_sharedDataPath()},
binaryPath(),
userDataPath(),
};
if (auto sharedDataPath = ios_sharedDataPath())
paths.emplace_back(sharedDataPath);
paths.emplace_back(binaryPath());
paths.emplace_back(userDataPath());
return paths;
}
bfs::path VCMIDirsIOS::libraryPath() const { return {ios_frameworksPath()}; }