diff --git a/BizHawk.Emulation.Common/TextState.cs b/BizHawk.Emulation.Common/TextState.cs index 0e80e21a94..e5fb2c9453 100644 --- a/BizHawk.Emulation.Common/TextState.cs +++ b/BizHawk.Emulation.Common/TextState.cs @@ -22,6 +22,14 @@ namespace BizHawk.Emulation.Common { public Dictionary Data = new Dictionary(); public Dictionary Objects = new Dictionary(); + public bool ShouldSerializeData() + { + return Data.Count > 0; + } + public bool ShouldSerializeObjects() + { + return Objects.Count > 0; + } } public Node Root = new Node();