X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Feeprom.cpp;h=705014631b98dcc0808be1cc184128455389bb1d;hb=1c6628e5d7f732e1bfac22ce81f5a79e20dfbb8e;hp=197d2692a77583783cdd1ae6af47134f55f1f5b4;hpb=0031c06df2f7f099ca5ecf1632f46b92f6b0dd79;p=virtualjaguar diff --git a/src/eeprom.cpp b/src/eeprom.cpp index 197d269..7050146 100644 --- a/src/eeprom.cpp +++ b/src/eeprom.cpp @@ -12,6 +12,10 @@ static uint16 eeprom_ram[64]; +// +// Private function prototypes +// + void eeprom_set_di(uint32 state); void eeprom_set_cs(uint32 state); uint32 eeprom_get_do(void); @@ -47,14 +51,14 @@ uint16 jerry_ee_data_cnt = 16; uint16 jerry_writes_enabled = 0; uint16 jerry_ee_direct_jump = 0; FILE * jerry_ee_fp; -extern char * jaguar_boot_dir; +extern char jaguar_boot_dir[1024]; void eeprom_init(void) { static char eeprom_filename[1024]; - sprintf(eeprom_filename, "%s\\%s%08X.eep", jaguar_boot_dir, jaguar_eeproms_path, (unsigned int)jaguar_mainRom_crc32); + sprintf(eeprom_filename, "%s/%s%08X.eep", jaguar_boot_dir, jaguar_eeproms_path, (unsigned int)jaguar_mainRom_crc32); jerry_ee_fp = fopen(eeprom_filename, "rb"); if (jerry_ee_fp) {