JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
made bang dots hit rocks, removed blast_rocks function.
[vor.git] / file.h
diff --git a/file.h b/file.h
index 14092ce..f376213 100644 (file)
--- a/file.h
+++ b/file.h
 #ifndef VOR_FILE_H
 #define VOR_FILE_H
 
+#include <stdbool.h>
 #include <stdio.h>
-#include <sys/types.h>
 
-extern char *g_data_dir;
-extern char *g_score_file;
-extern mode_t g_score_mode;
-
-char *add_path(char *filename);
-int is_dir(char *dirname);
-int is_file(char *filename);
-int find_data_dir(void);
-int find_score_file(void);
-int find_files(void);
+char *add_data_path(char *filename);
+bool is_dir(char *dirname);
+bool is_file(char *filename);
+bool find_data_dir(void);
+bool find_score_file(void);
+bool find_files(void);
 FILE *open_score_file(char *mode);
 
+#ifdef WIN32
+# define PATH_SEPARATOR '\\'
+#else
+# define PATH_SEPARATOR '/'
+#endif
+
 #endif // VOR_FILE_H