From 1c7c51c97f4ccdd94cec5428f8dc66e15e7c4567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Mon, 24 Feb 2020 15:28:53 +0200 Subject: [PATCH] Fixed|MSYS: Getting the current executable file path --- doomsday/libs/core/src/core/commandline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doomsday/libs/core/src/core/commandline.cpp b/doomsday/libs/core/src/core/commandline.cpp index 3104dfbea8..4b0417a9a5 100644 --- a/doomsday/libs/core/src/core/commandline.cpp +++ b/doomsday/libs/core/src/core/commandline.cpp @@ -159,7 +159,7 @@ CommandLine::CommandLine(const StringList &args) : d(new Impl(*this)) d->appendArg(args.at(i)); } } -#if defined (DE_CYGWIN) +#if defined (DE_CYGWIN) || defined (DE_MSYS) makeAbsolutePath(0); // convert to a Windows path #endif } @@ -332,7 +332,7 @@ void CommandLine::makeAbsolutePath(dsize pos) { bool converted = false; -#if defined (DE_CYGWIN) +#if defined (DE_CYGWIN) || defined (DE_MSYS) // Cygwin gives us UNIX-like paths on the command line, so let's convert // to our expected Windows paths. arg = String::take(unixToWindows_Path(arg));