Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
gta: patch fuel tank leaking in netgames
  • Loading branch information
Disquse committed Jun 25, 2019
1 parent 0fe5b9a commit 024707f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/components/gta-streaming-five/src/UnkStuff.cpp
Expand Up @@ -648,6 +648,10 @@ static HookFunction hookFunction([]()

// scenario point network game check
hook::put<uint8_t>(hook::get_pattern("74 0D 3C 02 0F 94 C0 38 05", 0), 0xEB);

// netgame checks for vehicle fuel tank leaking
hook::nop(hook::get_pattern("48 83 65 7F 00 0F 29 45 27 48 8D 45 77", -0xE3), 7);
hook::nop(hook::get_call(hook::get_pattern<char>("40 53 48 83 EC 20 48 8B D9 E8 ? ? ? ? 84 C0 74 32 8A 83 D8", 9)) + 0x19, 2);
}

// increase the heap size for allocator 0
Expand Down

0 comments on commit 024707f

Please sign in to comment.