Avoid a crash when the recent list contains EBOOTs.

This commit is contained in:
Unknown W. Brackets 2013-03-31 20:39:04 -07:00
parent dffb4383c9
commit 742f9c4491

View file

@ -112,6 +112,9 @@ again:
// A game can be either an UMD or a directory under ms0:/PSP/GAME .
if (startsWith(gamePath, "ms0:/PSP/GAME")) {
return 0;
// TODO: The case of these extensions is not perfect.
} else if (endsWith(gamePath, ".PBP") || endsWith(gamePath, ".elf")) {
return 0;
} else {
SequentialHandleAllocator handles;
// Let's assume it's an ISO.