Skip to content

Commit

Permalink
Update dllmain.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ThirteenAG authored Jan 21, 2021
1 parent 9bc12f6 commit 288d74d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions source/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,11 @@ void Init()

static float& fTimeStep = **hook::get_pattern<float*>("F3 0F 10 05 ? ? ? ? F3 0F 59 05 ? ? ? ? 8B 43 20 53", 4);

// reverse lights fix
{
auto pattern = hook::pattern("8B 40 64 FF D0 F3 0F 10 40 ? 8D 44 24 40 50");
injector::WriteMemory<uint8_t>(pattern.get_first(2), 0x60, true);
}
// reverse lights fix
{
auto pattern = hook::pattern("8B 40 64 FF D0 F3 0F 10 40 ? 8D 44 24 40 50");
injector::WriteMemory<uint8_t>(pattern.get_first(2), 0x60, true);
}

//fix for lods appearing inside normal models, unless the graphics menu was opened once (draw distances aren't set properly?)
{
Expand Down Expand Up @@ -560,8 +560,6 @@ void Init()
auto pattern = hook::pattern("F7 2D ? ? ? ? 8B C2 C1 E8 1F 03 C2 89 0D ? ? ? ? A3 ? ? ? ? 83 C4 10 C3");
injector::WriteMemory(*pattern.get_first<void*>(2), nPedBudget, true);
}


}

CEXP void InitializeASI()
Expand All @@ -579,4 +577,4 @@ BOOL APIENTRY DllMain(HMODULE hModule, DWORD reason, LPVOID lpReserved)
if (!IsUALPresent()) { InitializeASI(); }
}
return TRUE;
}
}

0 comments on commit 288d74d

Please sign in to comment.