From 60ef33b1e061fec7e53fbd5f4c2e0b118e49c642 Mon Sep 17 00:00:00 2001 From: shenweip Date: Mon, 14 Oct 2013 17:10:46 +0800 Subject: [PATCH] Also replace "//" to "/". --- UI/MainScreen.cpp | 2 ++ 1 file changed, 2 insertions(+) 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