X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=file.h;h=f37621348ea848793b7f43274ba972172a8802ac;hp=14092ce16c77ef59d6ef9d47869cbbc992b19824;hb=148882a3cc520f34616a1175ed157fe258d68dcc;hpb=e10d6c0b95e2f4fe7acd75733370dae71bb3b73f diff --git a/file.h b/file.h index 14092ce..f376213 100644 --- a/file.h +++ b/file.h @@ -19,19 +19,21 @@ #ifndef VOR_FILE_H #define VOR_FILE_H +#include #include -#include -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