mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 19:57:45 +00:00
Escape spaces when building encrypted arguments
This prevents the game from properly updating, since UserPath was accidentally getting its spaces stripped by the launcher.
This commit is contained in:
parent
65dd2cc375
commit
bcab12cf5f
1 changed files with 3 additions and 3 deletions
|
@ -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";
|
const QString argFormat = " /%1 =%2";
|
||||||
|
|
||||||
QString argJoined;
|
QString argJoined;
|
||||||
for(const auto& arg : arguments) {
|
for(auto& arg : arguments) {
|
||||||
argJoined += argFormat.arg(arg.key, arg.value);
|
argJoined += argFormat.arg(arg.key, arg.value.replace(" ", " "));
|
||||||
}
|
}
|
||||||
|
|
||||||
QString finalArg = encryptGameArg(argJoined);
|
QString finalArg = encryptGameArg(argJoined);
|
||||||
|
|
Loading…
Add table
Reference in a new issue