Skip to content
This repository was archived by the owner on Sep 18, 2023. It is now read-only.

Commit 933754e

Browse files
committed
eflc skip intro hangs too sometimes
1 parent 4a73963 commit 933754e

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

XLivelessAddon/dllmain.cpp

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -315,15 +315,15 @@ DWORD WINAPI Init(LPVOID)
315315
}
316316
}
317317

318-
static bool isEFLC = false;
319-
pattern = hook::pattern("68 ? ? ? ? E8 ? ? ? ? 8B F0 83 C4 ? 85 F6 0F 84 ? ? ? ? 6A 04");
320-
if (pattern.size() > 0)
321-
{
322-
if (strstr(*(char**)pattern.get(0).get<char*>(1), "EFLC") != NULL)
323-
{
324-
isEFLC = true;
325-
}
326-
}
318+
//static bool isEFLC = false;
319+
//pattern = hook::pattern("68 ? ? ? ? E8 ? ? ? ? 8B F0 83 C4 ? 85 F6 0F 84 ? ? ? ? 6A 04");
320+
//if (pattern.size() > 0)
321+
//{
322+
// if (strstr(*(char**)pattern.get(0).get<char*>(1), "EFLC") != NULL)
323+
// {
324+
// isEFLC = true;
325+
// }
326+
//}
327327

328328
auto gv = [&dwLoadOffset]() -> uint32_t
329329
{
@@ -763,15 +763,15 @@ DWORD WINAPI Init(LPVOID)
763763

764764
if (bSkipIntro)
765765
{
766-
if (isEFLC)
767-
{
768-
pattern = hook::pattern("74 ? 80 3D ? ? ? ? 00 74 ? E8 ? ? ? ? 0F");
769-
injector::WriteMemory<uint8_t>(pattern.get(0).get<uintptr_t>(0), 0xEB, true);
770-
}
771-
else
766+
//if (isEFLC)
767+
//{
768+
// pattern = hook::pattern("74 ? 80 3D ? ? ? ? 00 74 ? E8 ? ? ? ? 0F");
769+
// injector::WriteMemory<uint8_t>(pattern.get(0).get<uintptr_t>(0), 0xEB, true);
770+
//}
771+
//else
772772
{
773773
// [v1000 - v1008]
774-
//since iv hangs with it, I'll just zero the duration of loadscreens
774+
//since iv hangs with the code above, I'll just zero the duration of loadscreens
775775
pattern = hook::pattern("89 91 ? ? ? ? 8D 44 24 ? 68 ? ? ? ? 50");
776776
struct Loadsc
777777
{

0 commit comments

Comments
 (0)