From a53d03b766ac72bafa0b2aa5c5fe1990a9f2cf6f Mon Sep 17 00:00:00 2001 From: FX Date: Sun, 16 Apr 2023 21:12:17 +0200 Subject: [PATCH] Update FarsightConfig version due to new offsets Updating the FarsightConfig.CurrentVersion deprecates the old config files and forces an update that loads the correct offsets from github --- LeagueBroadcast/Ingame/Data/Config/FarsightConfig.cs | 6 +++--- Offsets/Offsets-13.7.1.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/LeagueBroadcast/Ingame/Data/Config/FarsightConfig.cs b/LeagueBroadcast/Ingame/Data/Config/FarsightConfig.cs index 372b080..5e36570 100644 --- a/LeagueBroadcast/Ingame/Data/Config/FarsightConfig.cs +++ b/LeagueBroadcast/Ingame/Data/Config/FarsightConfig.cs @@ -23,7 +23,7 @@ public class FarsightConfig : JSONConfig public override string FileVersion { get => _fileVersion; set => _fileVersion = value; } [JsonIgnore] - public static new string CurrentVersion => "2.0"; + public static new string CurrentVersion => "3.0"; [JsonIgnore] @@ -198,7 +198,7 @@ public override string GETJson() public override void RevertToDefault() { var def = CreateDefault().Result; - this.FileVersion = "2.0"; + this.FileVersion = CurrentVersion; this.OffsetVersion = def.OffsetVersion; this.GameOffsets = def.GameOffsets; this.ObjectOffsets = def.ObjectOffsets; @@ -207,7 +207,7 @@ public override void RevertToDefault() private void UpdateGameVersion(FarsightConfig oldVersion) { var def = CreateDefault(oldVersion).Result; - this.FileVersion = "2.0"; + this.FileVersion = CurrentVersion; this.OffsetVersion = def.OffsetVersion; this.GameOffsets = def.GameOffsets; this.ObjectOffsets = def.ObjectOffsets; diff --git a/Offsets/Offsets-13.7.1.json b/Offsets/Offsets-13.7.1.json index 8c02907..c2ff770 100644 --- a/Offsets/Offsets-13.7.1.json +++ b/Offsets/Offsets-13.7.1.json @@ -25,5 +25,5 @@ "Name": "0x38a0", "NameLength": "0x38b0" }, - "FileVersion": "2.0" + "FileVersion": "3.0" }