1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-23 12:57:45 +00:00

Set dalamud log path and fix launch

This commit is contained in:
Joshua Goins 2023-07-30 16:21:00 -04:00
parent 061a6776db
commit ec1724bb8b

View file

@ -131,6 +131,7 @@ void LauncherCore::beginDalamudGame(const QString &gameExecutablePath, const Pro
"--dalamud-plugin-directory=" + dataDir + "\\installedPlugins", "--dalamud-plugin-directory=" + dataDir + "\\installedPlugins",
"--dalamud-asset-directory=" + dataDir + "\\DalamudAssets", "--dalamud-asset-directory=" + dataDir + "\\DalamudAssets",
"--dalamud-client-language=" + QString::number(profile.language()), "--dalamud-client-language=" + QString::number(profile.language()),
"--logpath=" + dataDir,
"--", "--",
args}, args},
true, true,
@ -178,7 +179,7 @@ QString LauncherCore::getGameArgs(const Profile &profile, const LoginAuth &auth)
void LauncherCore::launchExecutable(const Profile &profile, QProcess *process, const QStringList &args, bool isGame, bool needsRegistrySetup) void LauncherCore::launchExecutable(const Profile &profile, QProcess *process, const QStringList &args, bool isGame, bool needsRegistrySetup)
{ {
QList<QString> arguments; QList<QString> arguments;
auto env = QProcessEnvironment::systemEnvironment(); auto env = process->processEnvironment();
if (needsRegistrySetup) { if (needsRegistrySetup) {
#if defined(Q_OS_LINUX) || defined(Q_OS_MAC) #if defined(Q_OS_LINUX) || defined(Q_OS_MAC)