Skip to content

Commit

Permalink
Simplified signatures (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
AsgardXIV authored Jul 17, 2024
1 parent 738fc54 commit a635383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Brio/Game/Camera/CameraService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public CameraService(EntityManager entityManager, GPoseService gPoseService, ISi
_cameraCollisionHook.Enable();

// TODO: Real sig?
var cameraUpdateAddr = "40 55 53 57 48 8D 6C 24 A0 48 81 EC 60 01 00 00 48 8B 1D ?? ?? 0A 01 48 8B F9 48 85 DB 0F 84 E6 09 00 00 48 8B CB ?? ?? ?? 20 FF 84 C0 0F 84 D6 09 00 00"; // Camera.vf3
var cameraUpdateAddr = "40 55 53 57 48 8D 6C 24 A0 48 81 EC ?? ?? ?? ?? 48 8B 1D"; // Camera.vf3
_cameraUpdateHook = hooking.HookFromAddress<CameraUpdateDelegate>(scanner.ScanText(cameraUpdateAddr), CameraUpdateDetour);
_cameraUpdateHook.Enable();
}
Expand Down
2 changes: 1 addition & 1 deletion Brio/Game/Posing/SkeletonService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public SkeletonService(EntityManager entityManager, ObjectMonitorService monitor
_updateBonePhysicsHook = hooking.HookFromAddress<UpdateBonePhysicsDelegate>(scanner.ScanText(updateBonePhysicsAddress), UpdateBonePhysicsDetour);
_updateBonePhysicsHook.Enable();

var finalizeSkeletonsHook = "48 8B 0D F1 85 4E 02 E9 E4 D8 3D 00"; // Framework.TaskRenderGraphicsRender
var finalizeSkeletonsHook = "40 53 55 57 48 83 EC ?? 65 48 8B 04 25"; // JMP in Framework.TaskRenderGraphicsRender
_finalizeSkeletonsHook = hooking.HookFromAddress<FinalizeSkeletonsDelegate>(scanner.ScanText(finalizeSkeletonsHook), FinalizeSkeletonsHook);
_finalizeSkeletonsHook.Enable();

Expand Down

0 comments on commit a635383

Please sign in to comment.