fix savestate configuration bug in m023 which as of r2532 started causing the emulator to crash on purpose (fixes #523)
This commit is contained in:
parent
23daa27c16
commit
0458e5555a
|
@ -38,8 +38,8 @@ static SFORMAT StateRegs[]=
|
|||
{®cmd, 1, "REGCMD"},
|
||||
{&irqcmd, 1, "IRQCMD"},
|
||||
{&mirr, 1, "MIRR"},
|
||||
{&big_bank, 1, "MIRR"},
|
||||
{&IRQCount, 2, "IRQC"},
|
||||
{&big_bank, 1, "BIGB"},
|
||||
{&IRQCount, 2, "IRCN"},
|
||||
{&IRQLatch, 1, "IRQL"},
|
||||
{&IRQa, 1, "IRQA"},
|
||||
{0}
|
||||
|
|
|
@ -853,7 +853,11 @@ void AddExState(void *v, uint32 s, int type, char *desc)
|
|||
std::string desc = tmp;
|
||||
if(names.find(desc) != names.end())
|
||||
{
|
||||
#ifdef _MSC_VER
|
||||
MessageBox(NULL,"OH NO!!! YOU HAVE AN INVALID SFORMAT! POST A BUG TICKET ALONG WITH INFO ON THE ROM YOURE USING\n","OOPS",MB_OK);
|
||||
#else
|
||||
printf("OH NO!!! YOU HAVE AN INVALID SFORMAT! POST A BUG TICKET ALONG WITH INFO ON THE ROM YOURE USING\n");
|
||||
#endif
|
||||
exit(0);
|
||||
}
|
||||
names[desc] = true;
|
||||
|
|
Loading…
Reference in New Issue