1 #ifndef _DJ_INCLUDE_GUI_H 2 #define _DJ_INCLUDE_GUI_H 3 4 #ifdef DOS 5 6 #include <dir.h> 7 #include <keys.h> 8 9 #endif 10 11 #ifdef ALLEGRO 12 #include <allegro.h> 13 #endif 14 #include "list_rom.h" 15 #include "trans_fx.h" 16 #include <string.h> 17 #include <math.h> 18 #include <unistd.h> 19 #include <sys/stat.h> 20 #include <stdlib.h> 21 #include "pce.h" 22 #include "cleantyp.h" 23 24 typedef struct { 25 char str[16]; 26 unsigned corr; 27 } TO_DISPLAY; 28 29 /* Warning, this has changed */ 30 typedef struct { 31 char basefilename[13]; 32 char romfilename[13]; 33 34 char romname[16]; 35 } INDEX_ITEM; 36 /* Warning, this has changed */ 37 38 typedef struct { 39 char basefilename[13]; 40 char archived[13]; 41 } ARCH_FILE; 42 43 extern char selected_rom[128]; 44 45 extern char name_to_extract[64]; 46 47 extern UChar static_refresh; 48 // used to know whether we check the game directory each time 49 50 extern UChar zip_support_in_fs; 51 // used to know whether we check inside zip archive in a directory 52 53 extern int vwidth; 54 55 extern int vheight; 56 57 void Dir(unsigned *dirt, 58 unsigned *fich, 59 unsigned *arch, 60 61 char *nom_dir, 62 63 ARCH_FILE * fichier, 64 65 char* must_draw, 66 67 TO_DISPLAY * to_display); 68 69 70 71 char* select_rom(); 72 73 74 75 #endif 76