hack fix fuck shit textstate code

This commit is contained in:
CasualPokePlayer 2021-11-21 16:01:07 -08:00
parent bd53079a3a
commit 83a5632759
2 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
{
var s = (TextState<TextStateData>)ser.Deserialize(reader, typeof(TextState<TextStateData>));
LoadState(s);
reader.ReadToEnd();
}
public void SaveStateBinary(BinaryWriter writer)

View File

@ -36,6 +36,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
_linkShiftSignal = s.LinkShiftSignal;
_linkSpaced = s.LinkSpaced;
_linkSpaceSignal = s.LinkSpaceSignal;
reader.ReadToEnd();
}
public void SaveStateBinary(BinaryWriter writer)
@ -104,6 +105,11 @@ namespace BizHawk.Emulation.Cores.Nintendo.Gameboy
public DGBSerialized(GambatteLink linkcore)
{
if (linkcore == null)
{
return;
}
NumCores = linkcore._numCores;
LinkedStates = new TextState<Gameboy.TextStateData>[NumCores];
LinkedOverflow = new int[NumCores];