Skip to content

Commit

Permalink
Only fix UI biped spawning on Custom Edition so Trial and Retail can …
Browse files Browse the repository at this point in the history
…load again
  • Loading branch information
Aerocatia committed Oct 11, 2023
1 parent 3073953 commit 0205415
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/chimera/fix/biped_ui_spawn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ namespace Chimera {
}

void set_up_fix_biped_ui_spawn() noexcept {
add_map_load_event(on_map_load);
if(get_chimera().feature_present("client_custom_edition")) {
add_map_load_event(on_map_load);
}
}
}
2 changes: 1 addition & 1 deletion src/chimera/signature/signature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ namespace Chimera {
FIND("load_main_menu_sig", "client_full", { 0xA0, -1, -1, -1, -1, 0x53, 0x33, 0xDB, 0x3C, 0x01, 0x88, 0x1D, -1, -1, -1, -1 });
FIND("load_main_menu_demo_sig", "client_demo", { 0x80, 0x3D, -1, -1, -1, -1, 0x01, 0xC6, 0x05, -1, -1, -1, -1, 0x00, 0x75, 0x21, 0xA1 });

FIND("fix_biped_spawning_on_ui_sig", "client", { 0x8b, 0x0d, -1, -1, -1, -1, 0x8b, 0x51, 0x34, 0x8b, 0x0d, -1, -1, -1, -1, 0x83, 0xec, 0x5c, 0x53, 0x55, 0x8b, 0x6c, 0x24, 0x68, 0x8b, 0xc5, 0x25, 0xff, 0xff, 0x00, 0x00, 0x8d, 0x04, 0x40, 0x56, 0x8b, 0x74, 0x82, 0x08, 0x8b, 0x06, 0x8b, 0x15, 0x60, 0x22, 0x6e, 0x00, 0x8b, 0x92, 0x8c, 0x01, 0x00, 0x00, 0x25, 0xff, 0xff, 0x00, 0x00, 0xc1, 0xe0, 0x05, 0x57, 0x8b, 0x7c, 0x08, 0x14, 0x8b, 0x86, 0x04, 0x02, 0x00, 0x00, 0xf6, 0xc4, 0x10, 0x75, 0x0e, 0x8a, 0x87, 0xf4, 0x02, 0x00, 0x00, 0x84, 0xc0, 0x78, 0x04, 0x32, 0xc9, 0xeb, 0x02, 0xb1, 0x01, 0x8b, 0x46, 0x70, 0x89, 0x44, 0x24, 0x70, 0x80, 0x3d, -1, -1, -1, -1, 0x01, 0x75, 0x02, 0xb1, 0x01, 0xa0, -1, -1, -1, -1, 0x83, 0xcb, 0xff });
FIND("fix_biped_spawning_on_ui_sig", "client_custom_edition", { 0x8b, 0x0d, -1, -1, -1, -1, 0x8b, 0x51, 0x34, 0x8b, 0x0d, -1, -1, -1, -1, 0x83, 0xec, 0x5c, 0x53, 0x55, 0x8b, 0x6c, 0x24, 0x68, 0x8b, 0xc5, 0x25, 0xff, 0xff, 0x00, 0x00, 0x8d, 0x04, 0x40, 0x56, 0x8b, 0x74, 0x82, 0x08, 0x8b, 0x06, 0x8b, 0x15, 0x60, 0x22, 0x6e, 0x00, 0x8b, 0x92, 0x8c, 0x01, 0x00, 0x00, 0x25, 0xff, 0xff, 0x00, 0x00, 0xc1, 0xe0, 0x05, 0x57, 0x8b, 0x7c, 0x08, 0x14, 0x8b, 0x86, 0x04, 0x02, 0x00, 0x00, 0xf6, 0xc4, 0x10, 0x75, 0x0e, 0x8a, 0x87, 0xf4, 0x02, 0x00, 0x00, 0x84, 0xc0, 0x78, 0x04, 0x32, 0xc9, 0xeb, 0x02, 0xb1, 0x01, 0x8b, 0x46, 0x70, 0x89, 0x44, 0x24, 0x70, 0x80, 0x3d, -1, -1, -1, -1, 0x01, 0x75, 0x02, 0xb1, 0x01, 0xa0, -1, -1, -1, -1, 0x83, 0xcb, 0xff });

return signatures;
}
Expand Down

0 comments on commit 0205415

Please sign in to comment.