Refactor console ending this saga

This commit is contained in:
Future committed 2022-05-18 00:32:10 +02:00
1 parent 7f5643dcae
commit 59b5a16d6f
13 files changed
+274 -64

No files matched your search

+22
View File
@@ -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