fix: Fixes extracting zstd and deserializing old account version (#828)

This commit is contained in:
nullptr-w8 2021-10-12 12:04:40 +05:00 committed by GitHub
parent f4302928bb
commit 7361c9158b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -93,7 +93,8 @@ namespace Server.Accounting
_totalGameTime = reader.ReadTimeSpan();
_email = reader.ReadString();
if (version > 1)
_email = reader.ReadString();
Timer.StartTimer(AfterDeserialization);
}

View file

@ -23,8 +23,8 @@ namespace Server.Compression
{
StartInfo = new ProcessStartInfo
{
FileName = _pathToZstd,
Arguments = $"-q -d \"{fileNamePath}\" -o \"${tempTarArchive}\""
FileName = Path.Combine(_pathToZstd, "zstd.exe"),
Arguments = $"-q -d \"{fileNamePath}\" -o \"{tempTarArchive}\""
}
};