libretro runahead

This commit is contained in:
funbars 2019-05-14 22:34:43 -05:00 committed by Stephen Anthony
parent 68d49f8e43
commit 1e7ff8974f
1 changed files with 8 additions and 0 deletions

View File

@ -593,6 +593,14 @@ void retro_deinit()
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
size_t retro_serialize_size()
{
int runahead = -1;
if(environ_cb(RETRO_ENVIRONMENT_GET_AUDIO_VIDEO_ENABLE, &runahead))
{
// maximum state size possible
if(runahead & 4)
return 0x100000;
}
return stella.getStateSize();
}