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

Make it possible to launch multiple times in succession

Fixes bug where expansion data would be read twice, thus failing the anti-tamper check.
This commit is contained in:
redstrate 2021-11-18 07:20:19 -05:00
parent 215513a27f
commit 8990fad533

View file

@ -152,6 +152,8 @@ QString SquareLauncher::getBootHash() {
} }
void SquareLauncher::readExpansionVersions(int max) { void SquareLauncher::readExpansionVersions(int max) {
expansionVersions.clear();
for(int i = 0; i < max; i++) for(int i = 0; i < max; i++)
expansionVersions.push_back(window.readVersion(QString("%1/game/sqpack/ex%2/ex%2.ver").arg(window.currentProfile().gamePath, QString::number(i + 1)))); expansionVersions.push_back(window.readVersion(QString("%1/game/sqpack/ex%2/ex%2.ver").arg(window.currentProfile().gamePath, QString::number(i + 1))));
} }