Skip to content

Commit 2f7fbc4

Browse files
authored
fix(world): update IsDevModeEnabledPatch pattern (#823)
1 parent 1fca608 commit 2f7fbc4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/game/features/world/EnableCreatorDevMode.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace YimMenu
99
"fm_lts_creator"_J,
1010
"fm_deathmatch_creator"_J,
1111
"fm_capture_creator"_J,
12+
"public_mission_creator"_J,
1213
});
1314

1415
class EnableCreatorDevMode : public BoolCommand
@@ -23,7 +24,7 @@ namespace YimMenu
2324
{
2425
for (int i = 0; i < creatorScripts.size(); i++)
2526
{
26-
m_IsDevModeEnabledPatches.push_back(ScriptPatches::AddPatch(creatorScripts[i], ScriptPointer("IsDevModeEnabledPatch", "5D ? ? ? 56 ? ? 38 00 46 F0 0B").Add(1).Rip(), {0x2D, 0x00, 0x02, 0x00, 0x00, 0x72, 0x2E, 0x00, 0x01}));
27+
m_IsDevModeEnabledPatches.push_back(ScriptPatches::AddPatch(creatorScripts[i], ScriptPointer("IsDevModeEnabledPatch", "5D ? ? ? 2A 56 ? ? 5D ? ? ? 06 1F 56 ? ? 38 00 46 ? ? 76").Add(1).Rip(), {0x2D, 0x00, 0x02, 0x00, 0x00, 0x72, 0x2E, 0x00, 0x01}));
2728
}
2829
}
2930

0 commit comments

Comments
 (0)