diff options
author | stujones11 <stujones111@gmail.com> | 2018-11-21 23:06:03 +0000 |
---|---|---|
committer | Paramat <paramat@users.noreply.github.com> | 2018-11-21 23:06:03 +0000 |
commit | 015e46310aba7275f620e3abdf24091c0c6bc947 (patch) | |
tree | 4f576a6f969e56f911e96f3f3f7e9135acab25a3 /src | |
parent | 67b20ff15a4786edd76adcbdb921fcc4acac7113 (diff) | |
download | minetest-015e46310aba7275f620e3abdf24091c0c6bc947.tar.gz minetest-015e46310aba7275f620e3abdf24091c0c6bc947.tar.bz2 minetest-015e46310aba7275f620e3abdf24091c0c6bc947.zip |
Android: Fix recursive delete (#7882)
Diffstat (limited to 'src')
-rw-r--r-- | src/filesys.cpp | 4 |
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]; |