diff --git a/Source/Core/Duality/DualityApp.cs b/Source/Core/Duality/DualityApp.cs index c515067a2..fc6071c12 100644 --- a/Source/Core/Duality/DualityApp.cs +++ b/Source/Core/Duality/DualityApp.cs @@ -224,12 +224,12 @@ public static SoundDevice Sound /// /// [GET / SET] Provides access to Duality's current application data. This is never null. /// - public static SettingsContainer AppData { get; } = new SettingsContainer("AppData.dat"); + public static SettingsContainer AppData { get; } = new SettingsContainer("AppData.xml"); /// /// [GET / SET] Provides access to Duality's current user data. This is never null. /// - public static SettingsContainer UserData { get; } = new SettingsContainer(execContext == ExecutionContext.Editor ? "DefaultUserData.dat" : "UserData.dat"); + public static SettingsContainer UserData { get; } = new SettingsContainer(execContext == ExecutionContext.Editor ? "DefaultUserData.xml" : "UserData.xml"); /// /// [GET] Returns the in which this DualityApp is currently running. diff --git a/Source/Core/Duality/Utility/SettingsContainer.cs b/Source/Core/Duality/Utility/SettingsContainer.cs index 6488ec0b1..79d8aace3 100644 --- a/Source/Core/Duality/Utility/SettingsContainer.cs +++ b/Source/Core/Duality/Utility/SettingsContainer.cs @@ -36,8 +36,8 @@ public SettingsContainer(string path) /// public void Load() { - this.Value = Serializer.TryReadObject(this.path) ?? new TSettings(); - Changed?.Invoke(this, EventArgs.Empty); + this.Value = Serializer.TryReadObject(this.path, typeof(XmlSerializer)) ?? new TSettings(); + this.Changed?.Invoke(this, EventArgs.Empty); } /// diff --git a/Source/DualityTemplates/DualityTemplates.csproj b/Source/DualityTemplates/DualityTemplates.csproj index e5aa0d0d1..136d5683d 100644 --- a/Source/DualityTemplates/DualityTemplates.csproj +++ b/Source/DualityTemplates/DualityTemplates.csproj @@ -45,6 +45,14 @@ + + + + + + + + Never diff --git a/Source/DualityTemplates/Templates/SolutionTemplate/.gitignore b/Source/DualityTemplates/Templates/SolutionTemplate/.gitignore index 3b79cc92f..f4a3fd271 100644 --- a/Source/DualityTemplates/Templates/SolutionTemplate/.gitignore +++ b/Source/DualityTemplates/Templates/SolutionTemplate/.gitignore @@ -5,14 +5,14 @@ # Duality specific files /Temp /Backup -/UserData.dat -/DesignTimeData.dat *.pdb /*.dll /*.exe /*.txt /*.xml /Plugins +!AppData.xml +!EditorAppData.xml # Visual studio specific files /.vs diff --git a/Source/DualityTemplates/Templates/SolutionTemplate/EditorAppData.dat b/Source/DualityTemplates/Templates/SolutionTemplate/EditorAppData.xml similarity index 100% rename from Source/DualityTemplates/Templates/SolutionTemplate/EditorAppData.dat rename to Source/DualityTemplates/Templates/SolutionTemplate/EditorAppData.xml diff --git a/Source/Editor/DualityEditor/DualityEditorApp.cs b/Source/Editor/DualityEditor/DualityEditorApp.cs index 5a918e007..0661a3278 100644 --- a/Source/Editor/DualityEditor/DualityEditorApp.cs +++ b/Source/Editor/DualityEditor/DualityEditorApp.cs @@ -134,7 +134,7 @@ public static bool IsFirstEditorSession /// /// [GET] Provides access to Duality's current application data. This is never null. /// - public static SettingsContainer EditorAppData { get; } = new SettingsContainer("EditorAppData.dat"); + public static SettingsContainer EditorAppData { get; } = new SettingsContainer("EditorAppData.xml"); public static bool BackupsEnabled {