MassManager: adapt to Mass changes.
Should have caught it earlier. Ugh.
This commit is contained in:
parent
afc163f344
commit
2cabe6a3ba
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ auto MassManager::importMass(const std::string& staged_fn, int hangar) -> bool {
|
||||||
std::string source = Utility::Directory::join(_stagingAreaDirectory, staged_fn);
|
std::string source = Utility::Directory::join(_stagingAreaDirectory, staged_fn);
|
||||||
Utility::Directory::copy(source, source + ".tmp");
|
Utility::Directory::copy(source, source + ".tmp");
|
||||||
|
|
||||||
if(!Mass{source + ".tmp"}.updateSteamId(_steamId))
|
if(!Mass{source + ".tmp"}.updateAccount(_steamId))
|
||||||
{
|
{
|
||||||
_lastError = "The M.A.S.S. file at " + source + " seems to be corrupt.";
|
_lastError = "The M.A.S.S. file at " + source + " seems to be corrupt.";
|
||||||
Utility::Directory::rm(source + ".tmp");
|
Utility::Directory::rm(source + ".tmp");
|
||||||
|
|
Loading…
Reference in a new issue