projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67b20ff
)
Android: Fix recursive delete (#7882)
author
stujones11
<stujones111@gmail.com>
Wed, 21 Nov 2018 23:06:03 +0000
(23:06 +0000)
committer
Paramat
<paramat@users.noreply.github.com>
Wed, 21 Nov 2018 23:06:03 +0000
(23:06 +0000)
src/filesys.cpp
patch
|
blob
|
history
diff --git
a/src/filesys.cpp
b/src/filesys.cpp
index be61ba430465d987150d1a6b3294dc9fccae4bb7..dc34b6b560798baaf795146d1a5ab261c3760099 100644
(file)
--- 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];