TextState (common to GB, WS, etc): clean up JSON formatting slightly. not a breaking change.

This commit is contained in:
goyuken 2014-08-18 18:00:22 +00:00
parent 047f148f20
commit a25c6b4665
1 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,14 @@ namespace BizHawk.Emulation.Common
{
public Dictionary<string, byte[]> Data = new Dictionary<string, byte[]>();
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();