From 742f9c4491c86f96a9858e8d0a9a76e0e4e43f2c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 31 Mar 2013 20:39:04 -0700 Subject: [PATCH] Avoid a crash when the recent list contains EBOOTs. --- UI/GameInfoCache.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/GameInfoCache.cpp b/UI/GameInfoCache.cpp index daab7ccf77..f1821fcc60 100644 --- a/UI/GameInfoCache.cpp +++ b/UI/GameInfoCache.cpp @@ -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.