diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index a194fdb8a4..61e870df76 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -607,6 +607,7 @@ UI::EventReturn MainScreen::OnLoadFile(UI::EventParams &e) { UI::EventReturn MainScreen::OnGameSelected(UI::EventParams &e) { #ifdef _WIN32 std::string path = ReplaceAll(e.s, "\\", "/"); + path = ReplaceAll(e.s, "//", "/"); #else std::string path = e.s; #endif @@ -617,6 +618,7 @@ UI::EventReturn MainScreen::OnGameSelected(UI::EventParams &e) { UI::EventReturn MainScreen::OnGameSelectedInstant(UI::EventParams &e) { #ifdef _WIN32 std::string path = ReplaceAll(e.s, "\\", "/"); + path = ReplaceAll(e.s, "//", "/"); #else std::string path = e.s; #endif