mirror of
https://github.com/edgegamers/poor-sharptimer.git
synced 2025-12-05 20:40:25 -08:00
Fix CheckSRReplay
This commit is contained in:
@@ -571,8 +571,13 @@ namespace SharpTimer
|
||||
|
||||
try
|
||||
{
|
||||
if (File.Exists(playerReplaysPath))
|
||||
{
|
||||
if (File.Exists(playerReplaysPath)) {
|
||||
if (useBinaryReplays) {
|
||||
var reader = new BinaryReader(File.Open(playerReplaysPath, FileMode.Open));
|
||||
var version = reader.ReadInt32();
|
||||
|
||||
return version == REPLAY_VERSION;
|
||||
}
|
||||
var jsonString = await File.ReadAllTextAsync(playerReplaysPath);
|
||||
if (!jsonString.Contains("PositionString"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user