Implement a stdio-based backend for the VFS (no archive support)
[neverball] / share / dir.h
index 7e3bc08..360e6a9 100644 (file)
@@ -26,4 +26,14 @@ void  dir_free(Array);
 List dir_list_files(const char *);
 void dir_list_free (List);
 
+int dir_exists(const char *);
+
+#ifdef _WIN32
+#include <direct.h>
+#define dir_make(path) _mkdir(path)
+#else
+#include <sys/stat.h>
+#define dir_make(path) mkdir(path, 0777)
+#endif
+
 #endif