Don't use "pre made" EEPROM content, just fill it with 0, it works fine for now.

Also set the "system" at a proper time
And set the correct (?) size for EEPROM
This commit is contained in:
Godzil
2019-09-04 15:11:26 +01:00
parent 80253e2cd6
commit ea6bfacb66
5 changed files with 29 additions and 15 deletions

View File

@@ -55,6 +55,8 @@ uint32 vblank_count=0;
char *ws_sram_path = NULL;
extern int ws_sram_dirty;
extern int ws_gpu_forceColorSystemBool;
extern int ws_gpu_forceMonoSystemBool;
////////////////////////////////////////////////////////////////////////////////
//
@@ -118,13 +120,17 @@ int ws_init(char *rompath)
return(0);
}
if (rompath[strlen(rompath)-1]=='c')
if ((ws_gpu_forceColorSystemBool == 0) && (ws_gpu_forceMonoSystemBool == 0))
{
ws_gpu_operatingInColor=1;
}
else
{
ws_gpu_operatingInColor=0;
/* Nothing forced try to "auto detect" */
if (rompath[strlen(rompath)-1]=='c')
{
ws_gpu_operatingInColor=1;
}
else
{
ws_gpu_operatingInColor=0;
}
}
ws_memory_init(rom,romSize);