[email protected] 8 年之前
父节点
当前提交
4060b5a6d7
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      oxygine/src/core/STDFileSystem.cpp

+ 3 - 0
oxygine/src/core/STDFileSystem.cpp

@@ -177,6 +177,7 @@ namespace oxygine
         int remove_directory(const char *path)
         int remove_directory(const char *path)
         {
         {
 #ifndef WIN32
 #ifndef WIN32
+#ifndef EMSCRIPTEN
             DIR *d = opendir(path);
             DIR *d = opendir(path);
             size_t path_len = strlen(path);
             size_t path_len = strlen(path);
             int r = -1;
             int r = -1;
@@ -226,6 +227,8 @@ namespace oxygine
             }
             }
 
 
             return r;
             return r;
+#endif
+            return -1;
 #else
 #else
             // subdirectories have been found
             // subdirectories have been found
             HANDLE          hFile;                       // Handle to directory
             HANDLE          hFile;                       // Handle to directory