From a28b56f48166a56a5e524337d179bd3508dc381b Mon Sep 17 00:00:00 2001 From: Jakob Date: Sun, 9 Jul 2023 18:33:17 +0200 Subject: [PATCH] improve skip check and fix old format --- EnvyUpdate/MainWindow.xaml.cs | 2 +- EnvyUpdate/Util.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/EnvyUpdate/MainWindow.xaml.cs b/EnvyUpdate/MainWindow.xaml.cs index d16e2b2..07909e0 100644 --- a/EnvyUpdate/MainWindow.xaml.cs +++ b/EnvyUpdate/MainWindow.xaml.cs @@ -292,7 +292,7 @@ namespace EnvyUpdate } //Check for different version than skipped version - if (skippedVer != onlineDriv) + if (skippedVer != null && skippedVer != onlineDriv) { Debug.LogToFile("INFO Skipped version is surpassed, deleting setting."); skippedVer = null; diff --git a/EnvyUpdate/Util.cs b/EnvyUpdate/Util.cs index e4587e0..2736164 100644 --- a/EnvyUpdate/Util.cs +++ b/EnvyUpdate/Util.cs @@ -223,12 +223,12 @@ namespace EnvyUpdate string sName = name.Value.ToString().ToLower(); if (sName == query) { - Debug.LogToFile("DEBUG Matched GetValueFromName query: " + sName); + Debug.LogToFile("INFO Matched GetValueFromName query: " + sName); string cleanResult = null; if (psid) { - Debug.LogToFile("DEBUG Getting psid."); + Debug.LogToFile("INFO Getting psid."); if (i == 0) value1 = int.Parse(name.Parent.FirstAttribute.Value); @@ -237,7 +237,7 @@ namespace EnvyUpdate } else { - Debug.LogToFile("DEBUG Getting something other than psid."); + Debug.LogToFile("INFO Getting something other than psid."); string result = name.Parent.Value.ToLower(); int index = result.IndexOf(sName); @@ -452,7 +452,7 @@ namespace EnvyUpdate if (Debug.isFake) { - Debug.LogToFile("DEBUG Loading fake IDs."); + Debug.LogToFile("INFO Loading fake IDs."); psid = Debug.LoadFakeIDs("psid"); pfid = Debug.LoadFakeIDs("pfid"); osid = Debug.LoadFakeIDs("osid");