This was flooding stdout in Release builds

This commit is contained in:
YoshiRulz 2020-07-02 10:04:58 +10:00
parent 4f9d9d29ef
commit 1360210331
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using BizHawk.Common;
using BizHawk.Emulation.Common;
namespace BizHawk.Client.Common
@ -161,7 +163,7 @@ namespace BizHawk.Client.Common
_states[_nextStateIndex].Size = (int)stream.Length;
_nextStateIndex = (_nextStateIndex + 1) & StateMask;
Console.WriteLine($"Size: {Size >> 20}MiB, Used: {Used >> 20}MiB, States: {Count}");
Util.DebugWriteLine($"Size: {Size >> 20}MiB, Used: {Used >> 20}MiB, States: {Count}");
}
private Stream MakeLoadStream(int index)
@ -211,7 +213,7 @@ namespace BizHawk.Client.Common
if ((uint)index > (uint)Count)
throw new IndexOutOfRangeException();
_nextStateIndex = (index + _firstStateIndex) & StateMask;
Console.WriteLine($"Size: {Size >> 20}MiB, Used: {Used >> 20}MiB, States: {Count}");
Util.DebugWriteLine($"Size: {Size >> 20}MiB, Used: {Used >> 20}MiB, States: {Count}");
}
public void SaveStateBinary(BinaryWriter writer)