Skip to content

Commit 8b34678

Browse files
committed
dolphin plugin fixes
1 parent fa3c50b commit 8b34678

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

includes/dolphin/dolphin.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ class Dolphin
3535
auto candidate_stringref = utility::scan_displacement_reference(current_module, *candidate_string);
3636
if (candidate_stringref)
3737
{
38-
for (size_t i = 0; i < 4000; ++i)
38+
for (size_t i = 0; i < 8000; ++i)
3939
{
4040
const auto mov = utility::scan_mnemonic(*candidate_stringref + i, 5, "MOV");
4141
if (mov)
4242
{
43-
if (injector::ReadMemory<uint32_t>(*mov + 1, true) == 19)
43+
if (injector::ReadMemory<uint32_t>(*mov + 1, true) == 19 || injector::ReadMemory<uint32_t>(*mov + 1, true) == 20)
4444
{
4545
const auto next_fn_call1 = utility::scan_mnemonic(*mov, 100, "CALL");
4646
if (next_fn_call1)
@@ -51,7 +51,7 @@ class Dolphin
5151
const auto next_mov = utility::scan_mnemonic(*next_fn_call2, 100, "MOV");
5252
if (next_mov)
5353
{
54-
if (injector::ReadMemory<uint32_t>(*next_mov + 1, true) == 17)
54+
if (injector::ReadMemory<uint32_t>(*next_mov + 1, true) == 17 || injector::ReadMemory<uint32_t>(*next_mov + 1, true) == 18)
5555
{
5656
_SetIsThrottlerTempDisabled = (void(__fastcall*)(bool disable))(injector::GetBranchDestination(*next_fn_call2).as_int());
5757
return _SetIsThrottlerTempDisabled(disable);

source/ResidentEvil2.RE3.Dolphin.FusionMod/dllmain.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ void PluginThread(std::future<void> futureObj)
5656
{
5757
[&]()
5858
{
59-
auto pattern = hook::pattern(Dolphin::GameMemoryStart, Dolphin::GameMemoryEnd, "38 a0 00 01 3c 60 ? ? 38 83 ? ? 90 a4");
59+
auto pattern = hook::pattern(Dolphin::GameMemoryStart, Dolphin::GameMemoryEnd, "38 ? 00 01 3c 60 ? ? 38 ? ? ? 90 ? ? ? 3c ? ? ? 38 63 ? ? 80 63 00 00 88 ? 00 09 28 ? 00 0b ? ? ? ? 3c 60 ? ? 38 ? ? ? 54 ? ? ? 7c ? ? ? 7c");
6060
if (gameVersion == RE3)
61-
pattern = hook::pattern(Dolphin::GameMemoryStart, Dolphin::GameMemoryEnd, "38 00 00 01 3c 60 ? ? 38 63 ? ? ? ? 00 00 3c 60");
61+
pattern = hook::pattern(Dolphin::GameMemoryStart, Dolphin::GameMemoryEnd, "38 00 00 01 3c 60 ? ? 38 63 ? ? 98 03 00 00 3c 60 ? ? 38 63 ? ? 93 83 21 58 3c 60");
6262
if (pattern.size() >= 1)
6363
{
6464
memcheck = pattern.get(0).get<uint32_t>(4);
@@ -165,7 +165,7 @@ void PluginThread(std::future<void> futureObj)
165165
}
166166
else if (gameVersion == RECV)
167167
{
168-
168+
169169
}
170170
}
171171
}
@@ -214,7 +214,7 @@ void InitLED()
214214
std::this_thread::sleep_for(std::chrono::milliseconds(100));
215215

216216
auto gameVersion = GameVersion::UNDEFINED;
217-
if (Dolphin::GameID() == "GHAE08" || Dolphin::GameID() == "GHAP08" || Dolphin::GameID() == "GHAJ08")
217+
if (Dolphin::GameID() == "GHAE08" || Dolphin::GameID() == "GHAP08" /* || Dolphin::GameID() == "GHAJ08"*/)
218218
gameVersion = GameVersion::RE2;
219219
else if (Dolphin::GameID() == "GLEE08" || Dolphin::GameID() == "GLEJ08" || Dolphin::GameID() == "GLEP08")
220220
gameVersion = GameVersion::RE3;

0 commit comments

Comments
 (0)