From 015e46310aba7275f620e3abdf24091c0c6bc947 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Wed, 21 Nov 2018 23:06:03 +0000 Subject: Android: Fix recursive delete (#7882) --- src/filesys.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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]; -- cgit v1.2.3