Browse Source

Update iOSFileio.mm

marauder2k7 7 years ago
parent
commit
982f292bb8
1 changed files with 2 additions and 2 deletions
  1. 2 2
      engine/source/platformiOS/iOSFileio.mm

+ 2 - 2
engine/source/platformiOS/iOSFileio.mm

@@ -31,7 +31,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
-
+#include <ftw.h>
 #include <utime.h>
 
 #include <sys/types.h>
@@ -521,7 +521,7 @@ void Platform::openFolder(const char* path )
    }
    
    const char* arg = avar("open '%s'", path);
-   U32 ret = system(arg);
+   U32 ret = nftw(arg, NULL, NULL, NULL);
    if(ret != 0)
       Con::printf(strerror(errno));
 }