Skip to content

Commit

Permalink
Update FarsightConfig version due to new offsets
Browse files Browse the repository at this point in the history
Updating the FarsightConfig.CurrentVersion deprecates the old config files and forces an update that loads the correct offsets from github
  • Loading branch information
FelixArbeithuber committed Apr 16, 2023
1 parent 6b6053b commit a53d03b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions LeagueBroadcast/Ingame/Data/Config/FarsightConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion Offsets/Offsets-13.7.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
"Name": "0x38a0",
"NameLength": "0x38b0"
},
"FileVersion": "2.0"
"FileVersion": "3.0"
}

0 comments on commit a53d03b

Please sign in to comment.