Merge pull request #4177 from shenweip/patch-5

Also replace "//" to "/".
This commit is contained in:
Henrik Rydgård 2013-10-14 02:27:39 -07:00
commit 06a69cef09

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