From 11f676d176a6f09e1999e24feef8030be1cbb9e3 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 7 Dec 2013 22:54:23 -0800 Subject: [PATCH] Support extracted ISOs (for debugging) in browser. --- UI/MainScreen.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index 0ba3192ba2..b00bf034bf 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -472,8 +472,14 @@ void GameBrowser::Refresh() { std::vector fileInfo; path_.GetListing(fileInfo, "iso:cso:pbp:elf:prx:"); for (size_t i = 0; i < fileInfo.size(); i++) { - if (fileInfo[i].isDirectory && (path_.GetPath().size() < 4 || !File::Exists(path_.GetPath() + fileInfo[i].name + "/EBOOT.PBP"))) { - // Check if eboot directory + bool isGame = !fileInfo[i].isDirectory; + // Check if eboot directory + if (!isGame && path_.GetPath().size() >= 4 && File::Exists(path_.GetPath() + fileInfo[i].name + "/EBOOT.PBP")) + isGame = true; + else if (!isGame && File::Exists(path_.GetPath() + fileInfo[i].name + "/PSP_GAME/SYSDIR")) + isGame = true; + + if (!isGame) { if (allowBrowsing_) { dirButtons.push_back(new DirButton(fileInfo[i].name, new UI::LinearLayoutParams(UI::FILL_PARENT, UI::FILL_PARENT))); }