diff --git a/src/libretro/StellaLIBRETRO.cxx b/src/libretro/StellaLIBRETRO.cxx index 6dfb4d36f..6e4f1c839 100644 --- a/src/libretro/StellaLIBRETRO.cxx +++ b/src/libretro/StellaLIBRETRO.cxx @@ -226,7 +226,11 @@ bool StellaLIBRETRO::loadState(const void* data, size_t size) state.putByteArray(reinterpret_cast(data), static_cast(size)); - return myOSystem->state().loadState(state); + if(!myOSystem->state().loadState(state)) + return false; + + memcpy(system_ram, myOSystem->console().system().m6532().getRAM(), 128); + return true; } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -