Skip to content

Commit b45f073

Browse files
committed
Update for 6.35
1 parent 8e1f582 commit b45f073

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Brio/Game/Render/RenderHookService.cs

+5-6
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,14 @@ namespace Brio.Game.Render;
88
public unsafe class RenderHookService : ServiceBase<RenderHookService>
99
{
1010
private delegate long EnforceKindRestrictionsDelegate(void* a1, void* a2);
11-
private Hook<EnforceKindRestrictionsDelegate> EnforceKindRestrictionsHook = null!;
11+
private Hook<EnforceKindRestrictionsDelegate> _enforceKindRestrictionsHook = null!;
1212
private uint _forceNpcHackCount = 0;
1313

1414
public RenderHookService()
1515
{
1616
var enforceKindRestrictionsAddress = Dalamud.SigScanner.ScanText("E8 ?? ?? ?? ?? 41 B0 ?? 48 8B D3 48 8B CD");
17-
EnforceKindRestrictionsHook = Hook<EnforceKindRestrictionsDelegate>.FromAddress(enforceKindRestrictionsAddress, EnforceKindRestrictionsDetour);
18-
19-
EnforceKindRestrictionsHook.Enable();
17+
_enforceKindRestrictionsHook = Hook<EnforceKindRestrictionsDelegate>.FromAddress(enforceKindRestrictionsAddress, EnforceKindRestrictionsDetour);
18+
_enforceKindRestrictionsHook.Enable();
2019
}
2120

2221
public void PushForceNpcHack() => ++_forceNpcHackCount;
@@ -39,11 +38,11 @@ private long EnforceKindRestrictionsDetour(void* a1, void* a2)
3938
if(ConfigService.Configuration.ApplyNPCHack == ApplyNPCHack.InGPose && GPoseService.Instance.IsInGPose)
4039
return 0;
4140

42-
return EnforceKindRestrictionsHook.Original(a1, a2);
41+
return _enforceKindRestrictionsHook.Original(a1, a2);
4342
}
4443

4544
public override void Dispose()
4645
{
47-
EnforceKindRestrictionsHook.Dispose();
46+
_enforceKindRestrictionsHook.Dispose();
4847
}
4948
}

Brio/Game/World/Interop/FestivalInterop.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public unsafe class GameMainInterop
8888
private SetActiveFestivalsDelegate _setActiveFestivals = null!;
8989
public void SetActiveFestivals(uint festival1, uint festival2, uint festival3, uint festival4) => _setActiveFestivals(GameMain.Instance(), festival1, festival2, festival3, festival4);
9090

91-
[Signature("E8 ?? ?? ?? ?? E9 08 29 00 00", ScanType = ScanType.Text)]
91+
[Signature("E8 ?? ?? ?? ?? E9 ?? ?? ?? ?? 8B 44 24 60 48 8D 8D", ScanType = ScanType.Text)]
9292
private SetActiveFestivalsDelegate _queueActiveFestivals = null!;
9393
public void QueueActiveFestivals(uint festival1, uint festival2, uint festival3, uint festival4) => _queueActiveFestivals(GameMain.Instance(), festival1, festival2, festival3, festival4);
9494

0 commit comments

Comments
 (0)