mirror of
https://github.com/libretro/ppsspp.git
synced 2025-03-03 14:09:45 +00:00
Merge pull request #7540 from mikekov/master
Fix for crash opening a directory
This commit is contained in:
commit
cea907feb5
@ -211,7 +211,7 @@ void EmuScreen::sendMessage(const char *message, const char *value) {
|
||||
}
|
||||
} else if (!strcmp(message, "boot")) {
|
||||
const char *ext = strrchr(value, '.');
|
||||
if (!strcmp(ext, ".ppst")) {
|
||||
if (ext != nullptr && !strcmp(ext, ".ppst")) {
|
||||
SaveState::Load(value, &AfterStateLoad);
|
||||
} else {
|
||||
PSP_Shutdown();
|
||||
|
Loading…
x
Reference in New Issue
Block a user