AppleII - don't savestate unneeded AV buffers.
This commit is contained in:
parent
8cbaf6304a
commit
704ace5eb7
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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.
Loading…
Reference in New Issue