Fix minor compile warnings for libretro.

This commit is contained in:
Stephen Anthony 2019-04-21 21:20:14 -02:30
parent e865cde07b
commit 94507a9444
2 changed files with 4 additions and 7 deletions

View File

@ -220,10 +220,7 @@ bool StellaLIBRETRO::loadState(const void* data, size_t size)
state.putByteArray(reinterpret_cast<const uInt8*>(data), static_cast<uInt32>(size));
if (!myOSystem->state().loadState(state))
return false;
return true;
return myOSystem->state().loadState(state);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@ -237,12 +234,12 @@ bool StellaLIBRETRO::saveState(void* data, size_t size)
if (state.size() > size)
return false;
state.getByteArray(reinterpret_cast<uInt8*>(data), state.size());
state.getByteArray(reinterpret_cast<uInt8*>(data), static_cast<uInt32>(state.size()));
return true;
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
uInt32 StellaLIBRETRO::getStateSize()
size_t StellaLIBRETRO::getStateSize()
{
Serializer state;

View File

@ -63,7 +63,7 @@ class StellaLIBRETRO
//uInt8* getRAM() { return myOSystem->console().system().m6532().getRAM(); }
//uInt32 getRAMSize() { return 128; }
uInt32 getStateSize();
size_t getStateSize();
bool getConsoleNTSC() { return console_timing == ConsoleTiming::ntsc; }