libretro: fix content closing when loading or saving state

This commit is contained in:
Flyinghead 2021-08-22 20:41:02 +02:00
parent 970f8c6dcd
commit 7fb83f4f77
3 changed files with 8 additions and 8 deletions

View File

@ -35,6 +35,7 @@ jobs:
cd build/artifact
zip flycast.nro.zip flycast.nro
rm -f flycast.nro
if: matrix.config.destDir != ''
- name: Configure AWS Credentials
id: aws-credentials

View File

@ -982,7 +982,7 @@ bool dec_DecodeBlock(RuntimeBlockInfo* rbi,u32 max_cycles)
}
if (state.cpu.is_delayslot && OpDesc[op]->SetPC())
throw FlycastException("Fatal: SH4 branch instuction in delay slot");
throw FlycastException("Fatal: SH4 branch instruction in delay slot");
if (!OpDesc[op]->rec_oph)
{
if (!dec_generic(op))

View File

@ -846,14 +846,13 @@ void retro_run()
// Render
is_dupe = true;
for (int i = 0; i < 5 && is_dupe; i++)
{
is_dupe = !rend_single_frame(true);
if (!dc_is_running()) {
std::string error = dc_get_last_error();
if (!error.empty())
gui_display_notification(error.c_str(), 5000);
environ_cb(RETRO_ENVIRONMENT_SHUTDOWN, NULL);
}
// If emulator still isn't running, something's wrong
if (!dc_is_running()) {
std::string error = dc_get_last_error();
if (!error.empty())
gui_display_notification(error.c_str(), 5000);
environ_cb(RETRO_ENVIRONMENT_SHUTDOWN, NULL);
}
}
else