Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified signatures #68

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading