Browse Source

Merge pull request #410 from marauder2k7/patch-3

Update iOSFileio.mm
Peter Robinson 7 years ago
parent
commit
1c18c8a140
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));
 }