Skip to content

Commit

Permalink
Fix UI display issue with directory names starting with PSP (but not …
Browse files Browse the repository at this point in the history
…equal to it)
  • Loading branch information
hrydgard committed Jan 23, 2024
1 parent 3fae8dd commit 4605cfd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UI/MainScreen.cpp
Expand Up @@ -514,7 +514,7 @@ GameBrowser::GameBrowser(int token, const Path &path, BrowseFlags browseFlags, b
: LinearLayout(UI::ORIENT_VERTICAL, layoutParams), path_(path), gridStyle_(gridStyle), browseFlags_(browseFlags), lastText_(lastText), lastLink_(lastLink), screenManager_(screenManager), token_(token) {
using namespace UI;
path_.SetUserAgent(StringFromFormat("PPSSPP/%s", PPSSPP_GIT_VERSION));
path_.SetRootAlias("ms:", GetSysDirectory(DIRECTORY_MEMSTICK_ROOT).ToVisualString());
path_.SetRootAlias("ms:", GetSysDirectory(DIRECTORY_MEMSTICK_ROOT).ToVisualString() + "/");
Refresh();
}

Expand Down
2 changes: 1 addition & 1 deletion UI/RemoteISOScreen.cpp
Expand Up @@ -256,7 +256,7 @@ static bool LoadGameList(const Path &url, std::vector<Path> &games) {
PathBrowser browser(url);
std::vector<File::FileInfo> files;
browser.SetUserAgent(StringFromFormat("PPSSPP/%s", PPSSPP_GIT_VERSION));
browser.SetRootAlias("ms:", GetSysDirectory(DIRECTORY_MEMSTICK_ROOT).ToVisualString());
browser.SetRootAlias("ms:", GetSysDirectory(DIRECTORY_MEMSTICK_ROOT).ToVisualString() + "/");
browser.GetListing(files, "iso:cso:chd:pbp:elf:prx:ppdmp:", &scanCancelled);
if (scanCancelled) {
return false;
Expand Down

0 comments on commit 4605cfd

Please sign in to comment.