Fix fs_game crash
This commit is contained in:
parent
19b6a12c92
commit
72efebb021
2
deps/json11
vendored
2
deps/json11
vendored
@ -1 +1 @@
|
||||
Subproject commit afcc8d0d82b1ce2df587a7a0637d05ba493bf5e6
|
||||
Subproject commit 3ae180068db774650c9f39041764bc99a00c868e
|
@ -199,6 +199,15 @@ namespace Components
|
||||
// fs_game fixes
|
||||
Utils::Hook::Nop(0x4A5D74, 2); // remove fs_game profiles
|
||||
Utils::Hook::Set<BYTE>(0x4081FD, 0xEB); // defaultweapon
|
||||
Utils::Hook::Set<BYTE>(0x452C1D, 0xEB); // LoadObj weaponDefs
|
||||
|
||||
// filesystem init default_mp.cfg check
|
||||
Utils::Hook::Nop(0x461A9E, 5);
|
||||
Utils::Hook::Nop(0x461AAA, 5);
|
||||
Utils::Hook::Nop(0x461AB2, 0xB1);
|
||||
|
||||
// vid_restart when ingame
|
||||
Utils::Hook::Nop(0x4CA1FA, 6);
|
||||
|
||||
// Filter log (initially com_logFilter, but I don't see why that dvar is needed)
|
||||
Utils::Hook::Nop(0x647466, 5); // 'dvar set' lines
|
||||
|
@ -32,7 +32,7 @@ namespace Utils
|
||||
|
||||
add esp, 4h // Clear the stack
|
||||
|
||||
mov [esp + 20h], eax // Store the return address at the reserves space
|
||||
mov [esp + 20h], eax // Store the return address at the reserved space
|
||||
popad // Restore the registers
|
||||
|
||||
retn // Return (jump to our return address)
|
||||
|
Loading…
x
Reference in New Issue
Block a user