From e1cfcd8e5d5bb8bdad23c22a73a0b91d12783d10 Mon Sep 17 00:00:00 2001 From: ComputerElite <71177995+ComputerElite@users.noreply.github.com> Date: Sun, 21 Feb 2021 14:47:31 +0100 Subject: [PATCH] V. 1.14.1 fixed config stuff --- C#/MainWindow.xaml.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/C#/MainWindow.xaml.cs b/C#/MainWindow.xaml.cs index cc4177f9..c3a162ae 100644 --- a/C#/MainWindow.xaml.cs +++ b/C#/MainWindow.xaml.cs @@ -38,7 +38,7 @@ public partial class MainWindow : Window { int MajorV = 1; int MinorV = 14; - int PatchV = 0; + int PatchV = 1; Boolean Preview = false; public static bool log = false; @@ -208,7 +208,7 @@ private void SetupLanguage() playlistEditorButton.Content = globalLanguage.mainMenu.UI.playlistEditorButton; settingsButton.Content = globalLanguage.mainMenu.UI.settingsButton; - File.WriteAllText("D:\\en.json", JsonSerializer.Serialize(globalLanguage)); + //File.WriteAllText("D:\\en.json", JsonSerializer.Serialize(globalLanguage)); } public static void Log(String s) @@ -360,6 +360,9 @@ public void enablecustom() public void saveConfig() { iPUtils.CheckIP(Quest); + config.Location = System.Reflection.Assembly.GetEntryAssembly().Location; + config.Version = MajorV.ToString() + "." + MinorV.ToString() + "." + PatchV.ToString(); + config.NotFirstRun = true; config.SaveConfig(); }