X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=file.h;h=df76403de0dfa35ddba34c822df746d05df0af04;hp=14092ce16c77ef59d6ef9d47869cbbc992b19824;hb=31a00c721be0b569bc554069cc0a3eb2864eb61f;hpb=e10d6c0b95e2f4fe7acd75733370dae71bb3b73f diff --git a/file.h b/file.h index 14092ce..df76403 100644 --- a/file.h +++ b/file.h @@ -19,19 +19,17 @@ #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 find_files(void); FILE *open_score_file(char *mode); +#ifdef WIN32 +# define PATH_SEPARATOR '\\' +#else +# define PATH_SEPARATOR '/' +#endif + #endif // VOR_FILE_H