From bcab12cf5f4baed5d2eaa97916f2f96fcbc7228b Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Wed, 27 Apr 2022 11:44:06 -0400 Subject: [PATCH] Escape spaces when building encrypted arguments This prevents the game from properly updating, since UserPath was accidentally getting its spaces stripped by the launcher. --- src/launcherwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/launcherwindow.cpp b/src/launcherwindow.cpp index 94ce81d..ebe7e0e 100644 --- a/src/launcherwindow.cpp +++ b/src/launcherwindow.cpp @@ -71,13 +71,13 @@ LauncherWindow::LauncherWindow(LauncherCore& core, QWidget* parent) : QMainWindo } } - arguments.push_back({"UserPath", QString("C:/Users/%1/Documents/My Games/FINAL FANTASY XIV - A Realm Reborn").arg(userPath)}); + arguments.push_back({"UserPath", QString(R"(C:\Users\%1\My Documents\My Games\FINAL FANTASY XIV - A Realm Reborn)").arg(userPath)}); const QString argFormat = " /%1 =%2"; QString argJoined; - for(const auto& arg : arguments) { - argJoined += argFormat.arg(arg.key, arg.value); + for(auto& arg : arguments) { + argJoined += argFormat.arg(arg.key, arg.value.replace(" ", " ")); } QString finalArg = encryptGameArg(argJoined);