snes-fix bug where you cant load games lacking save ram
This commit is contained in:
parent
e911a17a4e
commit
1b33d1dc9d
|
@ -754,6 +754,10 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES
|
|||
int size = api.snes_get_memory_size(id);
|
||||
int mask = size - 1;
|
||||
|
||||
//if this type of memory isnt available, dont make the memory domain (most commonly save ram)
|
||||
if (size == 0)
|
||||
return null;
|
||||
|
||||
byte* blockptr = api.snes_get_memory_data(id);
|
||||
|
||||
MemoryDomain md;
|
||||
|
|
Loading…
Reference in New Issue