mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-02-02 09:54:29 +00:00
android path "/sdcard/twister" (not quite standard but works)
This commit is contained in:
parent
5f3731bab3
commit
f69227c73a
@ -1040,11 +1040,15 @@ boost::filesystem::path GetDefaultDataDir()
|
|||||||
pathRet /= "Library/Application Support";
|
pathRet /= "Library/Application Support";
|
||||||
fs::create_directory(pathRet);
|
fs::create_directory(pathRet);
|
||||||
return pathRet / "Twister";
|
return pathRet / "Twister";
|
||||||
|
#else
|
||||||
|
#ifdef __ANDROID__
|
||||||
|
return "/sdcard/twister";
|
||||||
#else
|
#else
|
||||||
// Unix
|
// Unix
|
||||||
return pathRet / ".twister";
|
return pathRet / ".twister";
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
const boost::filesystem::path &GetDataDir(bool fNetSpecific)
|
const boost::filesystem::path &GetDataDir(bool fNetSpecific)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user