From f69227c73a3453d29fc6e4aaae0f20bdc36ac94c Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Sun, 20 Oct 2013 16:03:19 -0200 Subject: [PATCH] android path "/sdcard/twister" (not quite standard but works) --- src/util.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util.cpp b/src/util.cpp index cfb858f1..366d511c 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1041,8 +1041,12 @@ boost::filesystem::path GetDefaultDataDir() fs::create_directory(pathRet); return pathRet / "Twister"; #else + #ifdef __ANDROID__ + return "/sdcard/twister"; + #else // Unix return pathRet / ".twister"; + #endif #endif #endif }