mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2026-10-02 17:45:34 +00:00
feat: compile project with clang (with vs on Windows)
This commit is contained in:
16 files changed
+58
-327
No files matched your search
@@ -5,10 +5,9 @@ ScreenPlacement* ScrPlace_GetUnsafeFullPlacement() {
|
||||
return scrPlaceFullUnsafe;
|
||||
}
|
||||
|
||||
static DWORD Dvar_SetVariant_t = 0x649170;
|
||||
void __declspec(naked) Dvar_SetVariant(dvar_t* /*dvar*/, DvarValue /*value*/,
|
||||
DvarSetSource /*source*/) {
|
||||
static DWORD func = 0x649170;
|
||||
|
||||
__asm {
|
||||
pushad
|
||||
|
||||
@@ -18,7 +17,7 @@ void __declspec(naked) Dvar_SetVariant(dvar_t* /*dvar*/, DvarValue /*value*/,
|
||||
push [esp + 0x20 + 0x18] // value
|
||||
push [esp + 0x20 + 0x18] // value
|
||||
push [esp + 0x20 + 0x18] // value
|
||||
call func
|
||||
call Dvar_SetVariant_t
|
||||
add esp, 0x14
|
||||
|
||||
popad
|
||||
|
||||
Reference in new issue
Block a user