aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/filesys.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/filesys.cpp b/src/filesys.cpp
index be61ba430..dc34b6b56 100644
--- a/src/filesys.cpp
+++ b/src/filesys.cpp
@@ -303,7 +303,11 @@ bool RecursiveDelete(const std::string &path)
{
// Child
char argv_data[3][10000];
+#ifdef __ANDROID__
+ strcpy(argv_data[0], "/system/bin/rm");
+#else
strcpy(argv_data[0], "/bin/rm");
+#endif
strcpy(argv_data[1], "-rf");
strncpy(argv_data[2], path.c_str(), 10000);
char *argv[4];