1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-24 05:17:46 +00:00

Fix ffxivboot.exe check and move steam message box warning after it

Prevents some spam when using this unsupported mode
This commit is contained in:
Joshua Goins 2023-12-19 20:43:38 -05:00
parent 940ea7caef
commit 019ae08283

View file

@ -92,17 +92,17 @@ int main(int argc, char *argv[])
} }
if (parser.isSet(steamOption)) { if (parser.isSet(steamOption)) {
const QStringList args = parser.positionalArguments();
// Steam tries to use as a compatibility tool, running installation scripts (like DirectX), so try to ignore it.
if (!args.empty() && !args.join(QLatin1Char(';')).contains("ffxivboot.exe"_L1)) {
return 0;
}
#ifndef ENABLE_STEAM #ifndef ENABLE_STEAM
QMessageBox::warning(nullptr, QMessageBox::warning(nullptr,
i18n("Warning"), i18n("Warning"),
i18n("You somehow launched Astra through Steam, despite it not being compiled with Steam support. Some features may not work!")); i18n("You somehow launched Astra through Steam, despite it not being compiled with Steam support. Some features may not work!"));
#endif #endif
const QStringList args = parser.positionalArguments();
// Steam tries to use as a compatibility tool, running installation scripts (like DirectX), so try to ignore it.
if (!args.empty() && !args[0].contains("ffxivboot.exe"_L1)) {
return 0;
}
} }
QCoro::Qml::registerTypes(); QCoro::Qml::registerTypes();