TextState (common to GB, WS, etc): clean up JSON formatting slightly. not a breaking change.
This commit is contained in:
parent
047f148f20
commit
a25c6b4665
|
@ -22,6 +22,14 @@ namespace BizHawk.Emulation.Common
|
||||||
{
|
{
|
||||||
public Dictionary<string, byte[]> Data = new Dictionary<string, byte[]>();
|
public Dictionary<string, byte[]> Data = new Dictionary<string, byte[]>();
|
||||||
public Dictionary<string, Node> Objects = new Dictionary<string, Node>();
|
public Dictionary<string, Node> Objects = new Dictionary<string, Node>();
|
||||||
|
public bool ShouldSerializeData()
|
||||||
|
{
|
||||||
|
return Data.Count > 0;
|
||||||
|
}
|
||||||
|
public bool ShouldSerializeObjects()
|
||||||
|
{
|
||||||
|
return Objects.Count > 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Node Root = new Node();
|
public Node Root = new Node();
|
||||||
|
|
Loading…
Reference in New Issue