Skip to content

Commit

Permalink
[Sonic Frontiers] Update codes for v1.42
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperbx committed Jan 24, 2025
1 parent 9f650f8 commit 70a691b
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Patch "Smooth Camera (v1.41)" in "Camera" by "Ahremic" does "Replaces linear camera interpolation with a sigmoid solution, using Ken Perlin's ''Smoother Step'' second-order hermite polynomial."
Patch "Smooth Camera (v1.42)" in "Camera" by "Ahremic" does "Replaces linear camera interpolation with a sigmoid solution, using Ken Perlin's ''Smoother Step'' second-order hermite polynomial."
//
static float value01 = 1.0f;
static float value03 = 3.0f;
Expand All @@ -7,20 +7,20 @@ Patch "Smooth Camera (v1.41)" in "Camera" by "Ahremic" does "Replaces linear cam
//
{
// Linear coordinate interpolator
WriteProtected<byte>(0x146488544, Assemble("mov edx, 0x60"));
WriteProtected<byte>(0x146488583, Assemble("mov edx, 0x60"));
WriteProtected<byte>(0x1467D940D, Assemble("mov edx, 0x60"));
WriteProtected<byte>(0x1467D944C, Assemble("mov edx, 0x60"));

// Target Base interpolator
WriteProtected<byte>(0x14648863B, Assemble("mov edx, 0x100"));
WriteProtected<byte>(0x146488617, Assemble("mov edx, 0x100"));
WriteProtected<byte>(0x1464885D0, Assemble("mov edx, 0x100"));
WriteProtected<byte>(0x1467D94FD, Assemble("mov edx, 0x100"));
WriteProtected<byte>(0x1467D94D9, Assemble("mov edx, 0x100"));
WriteProtected<byte>(0x1467D9492, Assemble("mov edx, 0x100"));

// Base Ctor type A
WriteAsmHook
(
"movss dword ptr [rdi + 0xF0], xmm6",

0x1464517E5,
0x146780EB5,

HookBehavior.After
);
Expand Down Expand Up @@ -52,7 +52,7 @@ Patch "Smooth Camera (v1.41)" in "Camera" by "Ahremic" does "Replaces linear cam
(
"mov [rdi + 0xF0], eax",

0x1464638E6,
0x146788681,

HookBehavior.After
);
Expand Down Expand Up @@ -177,7 +177,7 @@ Patch "Smooth Camera (v1.41)" in "Camera" by "Ahremic" does "Replaces linear cam
ret
",

0x14644DF30,
0x14677AED0,

HookBehavior.Replace
);
Expand Down
16 changes: 10 additions & 6 deletions Source/Sonic Frontiers/Fixes/Animation/Fix Squatting Animation.hmm
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
Patch "Fix Squatting Animation" in "Fixes/Animation" by "angryzor" does "Plays the squat start animation when squatting from a standing pose."
{
/* 0x14B83D5ED in 1.41 */
long stateSquatEnter = ScanSignature(
"\x48\x89\xc2\x83\xfd\x3a\x74\x17\x83\xfd\x01\x48\x8d\x05\x59\xef\xcf\xf5\x48\x8d\x1d\xaa\x6f\xc5\xf5\x48\x0f\x45\xd8\xeb\x07\x48\x8d\x1d\x45\xef\xcf\xf5\x48\x89\xf9\xe8\x95\x88\x4f\xf5\x48\x89\xc1\x41\xb0\xfe\x48\x89\xda\xe8",
"xxxxxxxxxxxxxx????xxx????xxxxxxxxx????xxxx????xxxxxxxxxx"
);
WriteProtected<byte>
(
/* v1.42: 0x14B6E10FA */
ScanSignature
(
"\x83\xFD\x01\x48\x8D\x05\xCC\xCC\xCC\xCC\x48\x8D\x1D",
"xxxxxx????xxx"
),

WriteProtected<byte>(stateSquatEnter + 0xA, 2);
Assemble("cmp ebp, 2")
);
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Patch "Fix RenderDoc Captures (v1.42)" in "Fixes/Graphics" by "Skyth" does "Fixes RenderDoc being unable to hook to the game for capturing the graphics device."
{
WriteProtected<long>(0x141210B40, Read<long>(0x1560DE168));
WriteProtected<long>(0x141210B50, Read<long>(0x1560DE188));
}
4 changes: 2 additions & 2 deletions Source/Sonic Frontiers/Libraries/Converse.hmm
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ Library "Converse" by "Hyper & M&M"

WriteNop
(
/* 0x14DC85938 */
/* v1.42: 0x14D89053A */
ScanSignature
(
"\x74\x53\x44\x8B\x44\x24\x28",
"\x74\x5E\x44\x8B\x44\x24\x28",
"xxxxxxx"
),

Expand Down

0 comments on commit 70a691b

Please sign in to comment.