fix loadstate

This commit is contained in:
funbars 2019-05-01 22:16:45 -05:00 committed by Stephen Anthony
parent 0f8c8fcab3
commit b78171cea6
1 changed files with 5 additions and 1 deletions

View File

@ -226,7 +226,11 @@ bool StellaLIBRETRO::loadState(const void* data, size_t size)
state.putByteArray(reinterpret_cast<const uInt8*>(data), static_cast<uInt32>(size));
return myOSystem->state().loadState(state);
if(!myOSystem->state().loadState(state))
return false;
memcpy(system_ram, myOSystem->console().system().m6532().getRAM(), 128);
return true;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -