fix for crash opening directory

This commit is contained in:
Mike 2015-02-28 16:05:13 -08:00
parent 912cbd7368
commit 0653946acb

View file

@ -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();