Skip to content

Commit 50e759b

Browse files
committed
feat(core-five): increase map legend blip limit
1 parent 476f550 commit 50e759b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#include "StdInc.h"
2+
#include "Hooking.h"
3+
#include <CrossBuildRuntime.h>
4+
5+
// This increase the harcoded limit of blip groups from 100 to 255 in pause menu map legend
6+
static HookFunction hookFunction([]()
7+
{
8+
// The limit no longer exists on game build 3258 and above
9+
if (xbr::IsGameBuildOrGreater<3258>())
10+
{
11+
return;
12+
}
13+
14+
if (xbr::IsGameBuildOrGreater<2372>())
15+
{
16+
auto location = hook::get_pattern("EB 03 45 33 E4 66 41 83 F8 64 73 29", 9);
17+
hook::put<uint8_t>(location, 0xFF);
18+
}
19+
else
20+
{
21+
auto location = hook::get_pattern("03 45 33 E4 66 83 3D ? ? ? ? 64 73", 11);
22+
hook::put<uint8_t>(location, 0xFF);
23+
}
24+
});

0 commit comments

Comments
 (0)