Added instructions
This commit is contained in:
@@ -109,7 +109,7 @@ public static class SaveCore
|
||||
{
|
||||
for (int b3 = 0; b3 < 256; b3++)
|
||||
{
|
||||
// Key bytes 0..7 — tail bytes 4..7 fixed as [0x01,0x00,0x10,0x01]
|
||||
// Key bytes 0..7 - tail bytes 4..7 fixed as [0x01,0x00,0x10,0x01]
|
||||
// (matches the game's SteamID encoding pattern)
|
||||
byte[] key = [b0, b1, (byte)b2, (byte)b3, 0x01, 0x00, 0x10, 0x01];
|
||||
|
||||
@@ -156,7 +156,7 @@ public static class SaveCore
|
||||
using var zs2 = new ZLibStream(ms2, CompressionMode.Decompress);
|
||||
using var output = new MemoryStream();
|
||||
zs2.CopyTo(output);
|
||||
// success — reconstruct ulong SteamID64 from key bytes
|
||||
// success - reconstruct ulong SteamID64 from key bytes
|
||||
ulong steamId = BitConverter.ToUInt64(key, 0);
|
||||
return steamId;
|
||||
}
|
||||
@@ -225,7 +225,7 @@ public static class SaveCore
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
log.Add($" [ERROR] Decompression failed — source SteamID may be wrong. {ex.Message}");
|
||||
log.Add($" [ERROR] Decompression failed - source SteamID may be wrong. {ex.Message}");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -273,7 +273,7 @@ public static class SaveCore
|
||||
}
|
||||
else
|
||||
{
|
||||
log.Add(" [WARN] 'SSaveGameHeader' not found — SteamID may be incorrect.");
|
||||
log.Add(" [WARN] 'SSaveGameHeader' not found - SteamID may be incorrect.");
|
||||
}
|
||||
|
||||
string outPath = filePath + ".decrypted";
|
||||
@@ -323,7 +323,7 @@ public static class SaveCore
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
log.Add($" [ERROR] Decompression failed — SteamID {steamSid} may be incorrect. {ex.Message}");
|
||||
log.Add($" [ERROR] Decompression failed - SteamID {steamSid} may be incorrect. {ex.Message}");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user