Skip to content

Commit

Permalink
[Shadow Gens] Update codes for v1.10.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperbx committed Jan 14, 2025
1 parent 53bdbdf commit 9f650f8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Patch "Smooth Camera (v1.10.0.0)" in "Camera" by "Ahremic & Hyper" does "Replaces linear camera interpolation with a sigmoid solution, using Ken Perlin's ''Smoother Step'' second-order hermite polynomial."
Patch "Smooth Camera (v1.10.0.1)" in "Camera" by "Ahremic & Hyper" 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.10.0.0)" in "Camera" by "Ahremic & Hyper" does "Replace
//
{
// Linear coordinate interpolator
WriteProtected<byte>(0x1467D9D05, Assemble("mov edx, 0x60; nop"));
WriteProtected<byte>(0x1467D9D42, Assemble("mov edx, 0x60; nop"));
WriteProtected<byte>(0x146506695, Assemble("mov edx, 0x60"));
WriteProtected<byte>(0x1465066D2, Assemble("mov edx, 0x60; nop"));

// Target Base interpolator
WriteProtected<byte>(0x1467D9E00, Assemble("mov edx, 0x230; nop"));
WriteProtected<byte>(0x1467D9DD4, Assemble("mov edx, 0x230; nop"));
WriteProtected<byte>(0x1467D9D80, Assemble("mov edx, 0x230; nop"));
WriteProtected<byte>(0x146506786, Assemble("mov edx, 0x230; nop"));
WriteProtected<byte>(0x146506754, Assemble("mov edx, 0x230; nop"));
WriteProtected<byte>(0x14650670A, Assemble("mov edx, 0x230"));

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

0x1400A6257,
0x1400A6277,

HookBehavior.After
);
Expand All @@ -30,7 +30,7 @@ Patch "Smooth Camera (v1.10.0.0)" in "Camera" by "Ahremic & Hyper" does "Replace
(
"movss dword ptr [rdi + 0x220], xmm6",

0x14678E772,
0x1464A5B29,

HookBehavior.After
);
Expand All @@ -40,7 +40,7 @@ Patch "Smooth Camera (v1.10.0.0)" in "Camera" by "Ahremic & Hyper" does "Replace
(
"movss dword ptr [rdi + 0x50], xmm6",

0x1400A5D10,
0x1400A5D30,

HookBehavior.After
);
Expand All @@ -52,7 +52,7 @@ Patch "Smooth Camera (v1.10.0.0)" in "Camera" by "Ahremic & Hyper" does "Replace
(
"mov [rdi + 0x220], eax",

0x1400A6A5A,
0x1400A6A7A,

HookBehavior.After
);
Expand All @@ -72,7 +72,7 @@ Patch "Smooth Camera (v1.10.0.0)" in "Camera" by "Ahremic & Hyper" does "Replace
mov [rdi + 0x50], eax
",

0x1400A60E0,
0x1400A6100,

HookBehavior.Replace
);
Expand Down Expand Up @@ -128,7 +128,7 @@ Patch "Smooth Camera (v1.10.0.0)" in "Camera" by "Ahremic & Hyper" does "Replace
ret
",

0x1400A6D00,
0x1400A6D20,

HookBehavior.Replace
);
Expand Down Expand Up @@ -177,7 +177,7 @@ Patch "Smooth Camera (v1.10.0.0)" in "Camera" by "Ahremic & Hyper" does "Replace
ret
",

0x1400A6120,
0x1400A6140,

HookBehavior.Replace
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ Notes;
// v1.1.0.0: 0x14C5D9E0E
// v1.1.0.1: 0x14B40269B
// v1.10.0.0: 0x14AC7786A
// v1.10.0.1: 0x14A7AE010
var sig = ScanSignature
(
"\x74\x39\x48\x89\xD9\xE8\xCC\xCC\xCC\xCC\x48\x89\xD9",
"xxxxxx????xxx"
"\x74\x33\x48\x89\xD9\xE8",
"xxxxxx"
);

if (sig == 0)
Expand Down
6 changes: 4 additions & 2 deletions Source/Shadow Generations/Gameplay/Restore Drop Dash.hmm
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,16 @@ Notes;
// v1.1.0.0: 0x1406E8890
// v1.1.0.1: 0x1406E8B40
// v1.10.0.0: 0x14070C120
// v1.10.0.1: 0x14070C140
var fpPlaySound = Memory.ReadCall
(
/* v1.1.0.1: 0x14B402632 */
/* v1.10.0.0: 0x14AC77801 */
/* v1.10.0.1: 0x14A7ADFA8 */
ScanSignature
(
"\xE8\xCC\xCC\xCC\xCC\x8B\x15\xCC\xCC\xCC\xCC\x81\xF2\xFC\x24\x48\x21",
"x????xx????xxxxxx"
"\xE8\xCC\xCC\xCC\xCC\x48\x8D\x8F\xE8\x00\x00\x00\x48\x89\xC2",
"x????xxxxxxxxxx"
)
);

Expand Down

0 comments on commit 9f650f8

Please sign in to comment.