Also replace "//" to "/".

This commit is contained in:
shenweip committed 2013-10-14 17:10:46 +08:00
1 parent d811b6f5f0
commit 60ef33b1e0
1 file changed
+2
+2
View File
@@ -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