android path "/sdcard/twister" (not quite standard but works)

This commit is contained in:
Miguel Freitas 2013-10-20 16:03:19 -02:00
parent 5f3731bab3
commit f69227c73a

View File

@ -1041,8 +1041,12 @@ boost::filesystem::path GetDefaultDataDir()
fs::create_directory(pathRet); fs::create_directory(pathRet);
return pathRet / "Twister"; return pathRet / "Twister";
#else #else
#ifdef __ANDROID__
return "/sdcard/twister";
#else
// Unix // Unix
return pathRet / ".twister"; return pathRet / ".twister";
#endif
#endif #endif
#endif #endif
} }