mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2026-10-03 18:05:33 +00:00
Refactor console ending this saga
This commit is contained in:
13 files changed
+274
-64
No files matched your search
@@ -4,4 +4,26 @@ namespace game {
|
||||
ScreenPlacement* ScrPlace_GetUnsafeFullPlacement() {
|
||||
return scrPlaceFullUnsafe;
|
||||
}
|
||||
|
||||
void __declspec(naked) Dvar_SetVariant(dvar_t* /*dvar*/, DvarValue /*value*/,
|
||||
DvarSetSource /*source*/) {
|
||||
static DWORD func = 0x649170;
|
||||
|
||||
__asm {
|
||||
pushad
|
||||
|
||||
mov eax, [esp + 0x20 + 0x4] // dvar
|
||||
push [esp + 0x20 + 0x18] // source
|
||||
push [esp + 0x20 + 0x18] // value
|
||||
push [esp + 0x20 + 0x18] // value
|
||||
push [esp + 0x20 + 0x18] // value
|
||||
push [esp + 0x20 + 0x18] // value
|
||||
call func
|
||||
add esp, 0x14
|
||||
|
||||
popad
|
||||
|
||||
ret
|
||||
}
|
||||
}
|
||||
} // namespace game
|
||||
Reference in new issue
Block a user