From 615c357f1d03bc7948cd55cd7341466d3d17a87a Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 23 Feb 2017 09:30:40 +0100 Subject: [PATCH] Win32 start-from-command-line: Normalize slashes earlier in the process. The actual root cause of the issue from #9335. --- UI/NativeApp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 019ebe22ee..35c4f9d232 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -423,6 +423,9 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch } else { if (boot_filename.empty()) { boot_filename = argv[i]; +#ifdef _WIN32 + boot_filename = ReplaceAll(boot_filename, "\\", "/"); +#endif skipLogo = true; std::unique_ptr fileLoader(ConstructFileLoader(boot_filename));