[DEV] update IOS internal folders

This commit is contained in:
Edouard DUPIN 2014-04-18 00:00:22 +02:00
parent 659717c9d1
commit 2e6fae8db5

View File

@ -326,7 +326,7 @@ void etk::initDefaultFolder(const char* _applName) {
#if defined(__TARGET_OS__MacOs)
baseFolderData += "/../Resources/";
#elif defined(__TARGET_OS__IOs)
baseFolderData += "/Resources/";
baseFolderData += "/share/";
#else
baseFolderData += "/../share";
baseFolderData += binaryName;
@ -334,14 +334,25 @@ void etk::initDefaultFolder(const char* _applName) {
#endif
baseFolderData = simplifyPath(baseFolderData);
}
baseFolderDataUser = baseFolderHome;
baseFolderDataUser += "/.local/share/";
baseFolderDataUser += binaryName;
baseFolderDataUser += "/";
baseFolderCache = "/tmp/";
baseFolderCache += binaryName;
baseFolderCache += "/";
#if defined(__TARGET_OS__IOs)
baseFolderDataUser = binaryPath;
baseFolderDataUser += "/../Documents/";
baseFolderDataUser = simplifyPath(baseFolderDataUser);
#else
baseFolderDataUser = baseFolderHome;
baseFolderDataUser += "/.local/share/";
baseFolderDataUser += binaryName;
baseFolderDataUser += "/";
#endif
#if defined(__TARGET_OS__IOs)
baseFolderCache = binaryPath;
baseFolderCache += "/../tmp/";
baseFolderCache = simplifyPath(baseFolderCache);
#else
baseFolderCache = "/tmp/";
baseFolderCache += binaryName;
baseFolderCache += "/";
#endif
#endif
#endif
TK_INFO("baseFolderHome : '" << baseFolderHome << "'");