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:
parent
215513a27f
commit
8990fad533
1 changed files with 2 additions and 0 deletions
|
@ -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))));
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue