We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c52ef39 commit d407e0fCopy full SHA for d407e0f
GeometryDashAPI/Data/GameData.cs
@@ -38,7 +38,7 @@ public virtual async Task LoadAsync(string fileName)
38
39
var xor = Crypt.XOR(data, 0xB);
40
var index = xor.AsSpan().IndexOf((byte)0);
41
- var gZipDecompress = Crypt.GZipDecompress(GameConvert.FromBase64(Encoding.ASCII.GetString(xor, 0, index)));
+ var gZipDecompress = Crypt.GZipDecompress(GameConvert.FromBase64(Encoding.ASCII.GetString(xor, 0, index >= 0 ? index : xor.Length)));
42
43
DataPlist = new Plist(Encoding.ASCII.GetBytes(gZipDecompress));
44
}
0 commit comments