AppleII - don't savestate unneeded AV buffers.

This commit is contained in:
goyuken 2015-05-19 22:01:13 +00:00
parent 8cbaf6304a
commit 704ace5eb7
4 changed files with 15 additions and 0 deletions

View File

@ -22,9 +22,17 @@ namespace Jellyfish.Virtu.Services
}
}
[Newtonsoft.Json.JsonIgnore] // only relevant if trying to savestate midframe
private short[] buff = new short[4096];
[Newtonsoft.Json.JsonIgnore] // only relevant if trying to savestate midframe
private int pos = 0;
[System.Runtime.Serialization.OnDeserialized]
public void OnDeserialized(System.Runtime.Serialization.StreamingContext context)
{
pos = 0;
}
public void Clear()
{
pos = 0;

View File

@ -14,6 +14,7 @@
this.fb = fb;
}
[Newtonsoft.Json.JsonIgnore] // client can serialize framebuffer if it wants to
public int[] fb;
public void SetPixel(int x, int y, int color)

View File

@ -25,6 +25,12 @@ namespace Jellyfish.Virtu
};
}
[System.Runtime.Serialization.OnDeserialized]
public void OnDeserialized(System.Runtime.Serialization.StreamingContext context)
{
DirtyScreen();
}
public override void Initialize()
{
_memory = Machine.Memory;

Binary file not shown.