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:
parent
940ea7caef
commit
019ae08283
1 changed files with 6 additions and 6 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue