mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-03 06:13:45 +01:00
Meh.
This commit is contained in:
parent
a308fb9f77
commit
73b9d1fca0
1 changed files with 5 additions and 1 deletions
|
|
@ -5,6 +5,9 @@ namespace Penumbra.Interop.Hooks;
|
|||
|
||||
public class HookOverrides
|
||||
{
|
||||
[JsonIgnore]
|
||||
public bool IsCustomLoaded { get; private set; }
|
||||
|
||||
public static HookOverrides Instance = new();
|
||||
|
||||
public AnimationHooks Animation;
|
||||
|
|
@ -113,7 +116,8 @@ public class HookOverrides
|
|||
try
|
||||
{
|
||||
var text = File.ReadAllText(path);
|
||||
var ret = JsonConvert.DeserializeObject<HookOverrides>(text);
|
||||
var ret = JsonConvert.DeserializeObject<HookOverrides>(text)!;
|
||||
ret.IsCustomLoaded = true;
|
||||
Penumbra.Log.Warning("A hook override file was loaded, some hooks may be disabled and Penumbra might not be working as expected.");
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue