libretro: Fix segfault when starting Stella. For now, this also disables rewind.

This commit is contained in:
Stephen Anthony 2021-09-05 17:15:49 -02:30
parent 2ea86222d8
commit 93fe4e3bf4
1 changed files with 8 additions and 0 deletions

View File

@ -187,6 +187,7 @@ void StellaLIBRETRO::updateAudio()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool StellaLIBRETRO::loadState(const void* data, size_t size)
{
#if 0
Serializer state;
state.putByteArray(reinterpret_cast<const uInt8*>(data), static_cast<uInt32>(size));
@ -196,11 +197,15 @@ bool StellaLIBRETRO::loadState(const void* data, size_t size)
memcpy(system_ram, myOSystem->console().system().m6532().getRAM(), 128);
return true;
#else
return false;
#endif
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool StellaLIBRETRO::saveState(void* data, size_t size) const
{
#if 0
Serializer state;
if (!myOSystem->state().saveState(state))
@ -211,6 +216,9 @@ bool StellaLIBRETRO::saveState(void* data, size_t size) const
state.getByteArray(reinterpret_cast<uInt8*>(data), static_cast<uInt32>(state.size()));
return true;
#else
return false;
#endif
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -