00001
00002
00003
00004
00005
00006 #ifndef __fileutil_h__
00007 #define __fileutil_h__
00008
00009 extern char *lc_save_dir;
00010 extern char *lc_temp_file;
00011 extern int lc_save_dir_len;
00012
00013
00014
00015 #if defined (_POSIX_PATH_MAX)
00016 #define LC_PATH_MAX _POSIX_PATH_MAX
00017 #elif defined (_MAX_PATH)
00018 #define LC_PATH_MAX _MAX_PATH
00019 #elif defined (PATH_MAX)
00020 #define LC_PATH_MAX PATH_MAX
00021 #else
00022 #define LC_PATH_MAX 4096
00023 #endif
00024
00025 extern char colour_pal_file[LC_PATH_MAX];
00026 extern char opening_pic[LC_PATH_MAX];
00027 extern char graphic_path[LC_PATH_MAX];
00028 extern char fontfile[LC_PATH_MAX];
00029 extern char opening_path[LC_PATH_MAX];
00030 extern char help_path[LC_PATH_MAX];
00031 extern char message_path[LC_PATH_MAX];
00032 extern char lc_textdomain_directory[LC_PATH_MAX];
00033 extern char lincityrc_file[LC_PATH_MAX];
00034 extern char given_scene[LC_PATH_MAX];
00035
00036 void gunzip_file (char *f1, char *f2);
00037 int file_exists (char *filename);
00038 int directory_exists (char *dir);
00039 char* load_graphic(char *s);
00040 void undosify_string(char *s);
00041 void load_lincityrc (void);
00042 void save_lincityrc (void);
00043
00044 void debug_printf (char* fmt, ...);
00045
00046 #endif