aboutsummaryrefslogtreecommitdiff
path: root/Histacom2.Engine/SaveSystem.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-08-29 14:00:58 +0100
committerAlex-TIMEHACK <[email protected]>2017-08-29 14:00:58 +0100
commit1523a8133e8267420f4ad8988e3c466bcc017442 (patch)
tree3f6a7bfd6497560fdf8a29ad352a4de8af89c44e /Histacom2.Engine/SaveSystem.cs
parent474fcc7c5f42cfbf10808fbf7d52b9c3745c12a9 (diff)
downloadhistacom2-1523a8133e8267420f4ad8988e3c466bcc017442.tar.gz
histacom2-1523a8133e8267420f4ad8988e3c466bcc017442.tar.bz2
histacom2-1523a8133e8267420f4ad8988e3c466bcc017442.zip
Save File Trouble Shooter Re-do
Diffstat (limited to 'Histacom2.Engine/SaveSystem.cs')
-rw-r--r--Histacom2.Engine/SaveSystem.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Histacom2.Engine/SaveSystem.cs b/Histacom2.Engine/SaveSystem.cs
index 7da916b..b8c619e 100644
--- a/Histacom2.Engine/SaveSystem.cs
+++ b/Histacom2.Engine/SaveSystem.cs
@@ -28,6 +28,13 @@ namespace Histacom2.Engine
public static Theme currentTheme { get; set; }
+ public static bool IsBinarySave =
+#if BINARY_SAVE
+ true;
+#else
+ false;
+#endif
+
#if BINARY_SAVE
private static readonly byte[] magic = Encoding.UTF8.GetBytes("THSv");
private static readonly IOrderedEnumerable<System.Reflection.PropertyInfo> properties = typeof(Save).GetProperties().OrderBy(p => (p.GetCustomAttributes(typeof(OrderAttribute), false).SingleOrDefault() as OrderAttribute).Order);