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:
zeromus 2012-07-05 21:40:12 +00:00
parent 23daa27c16
commit 0458e5555a
2 changed files with 6 additions and 2 deletions

View File

@ -38,8 +38,8 @@ static SFORMAT StateRegs[]=
{&regcmd, 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}

View File

@ -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;