Merge pull request #673 from MrCheeze/master

Fix SNES trace logging to not lose information
This commit is contained in:
hegyak 2016-07-31 07:59:38 -07:00 committed by GitHub
commit e2408d77c5
1 changed files with 3 additions and 7 deletions

View File

@ -1,4 +1,4 @@
//TODO - add serializer (?)
//TODO - add serializer (?)
//http://wiki.superfamicom.org/snes/show/Backgrounds
@ -394,13 +394,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
void snes_trace(string msg)
{
// TODO: get them out of the core split up and remove this hackery
string splitStr = "[";
if (!msg.Contains('['))
{
splitStr = "A:";
}
string splitStr = "A:";
var split = msg.Split(new[] {splitStr }, StringSplitOptions.None);
var split = msg.Split(new[] {splitStr }, 2, StringSplitOptions.None);
Tracer.Put(new TraceInfo
{