Skip to content

Commit

Permalink
libretro: Don't close the content when a texture cache exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbea committed Jan 23, 2018
1 parent 4b9f3db commit 178de8d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1184,11 +1184,17 @@ void retro_run(void)
bool success = libretro_draw->CreatePresets();
assert(success);

if(!PSP_Init(coreParam, &error_string))
bool bootPending_ = !PSP_Init(coreParam, &error_string);

if(!bootPending_)
{
if (log_cb)
log_cb(RETRO_LOG_ERROR, "PSP_Init() failed: %s.\n", error_string.c_str());
environ_cb(RETRO_ENVIRONMENT_SHUTDOWN, nullptr);
_initialized = !PSP_IsInited();
if (_initialized)
{
if (log_cb)
log_cb(RETRO_LOG_ERROR, "PSP_Init() failed: %s.\n", error_string.c_str());
environ_cb(RETRO_ENVIRONMENT_SHUTDOWN, nullptr);
}
}

host->BootDone();
Expand Down

0 comments on commit 178de8d

Please sign in to comment.