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:
The Dax committed 2013-09-15 00:08:53 -04:00
1 parent 877ea42125
commit efa2c1c500
2 files changed
+13 -2

No files matched your search

+12 -2
View File
@@ -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;
}