mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 02:09:05 +02:00
Use consistent directory slashes. We'll just replace all backslashes with forward slashes, eliminating the chance of duplicat recents. Fixes #3352.
This commit is contained in:
1 parent
877ea42125
commit
efa2c1c500
2 files changed
+13
-2
No files matched your search
+12
-2
@@ -589,13 +589,23 @@ UI::EventReturn MainScreen::OnLoadFile(UI::EventParams &e) {
|
||||
}
|
||||
|
||||
UI::EventReturn MainScreen::OnGameSelected(UI::EventParams &e) {
|
||||
screenManager()->push(new GameScreen(e.s));
|
||||
#ifdef _WIN32
|
||||
std::string path = ReplaceAll(e.s, "//", "/");
|
||||
#else
|
||||
std::string path = e.s;
|
||||
#endif
|
||||
screenManager()->push(new GameScreen(path));
|
||||
return UI::EVENT_DONE;
|
||||
}
|
||||
|
||||
UI::EventReturn MainScreen::OnGameSelectedInstant(UI::EventParams &e) {
|
||||
#ifdef _WIN32
|
||||
std::string path = ReplaceAll(e.s, "//", "/");
|
||||
#else
|
||||
std::string path = e.s;
|
||||
#endif
|
||||
// Go directly into the game.
|
||||
screenManager()->switchScreen(new EmuScreen(e.s));
|
||||
screenManager()->switchScreen(new EmuScreen(path));
|
||||
return UI::EVENT_DONE;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user