mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-03-01 22:29:15 +01:00
fixed linux issues
--HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40354
This commit is contained in:
parent
32dc2d619f
commit
f4865a2a09
@ -32,17 +32,17 @@ _GetGameDir:
|
|||||||
|
|
||||||
mov ecx, [engine] ;get this pointer
|
mov ecx, [engine] ;get this pointer
|
||||||
mov edx, [ecx] ;get the vtable
|
mov edx, [ecx] ;get the vtable
|
||||||
|
push dword [ebp+12] ;push maxlenth
|
||||||
|
push dword [ebp+8] ;push buffer
|
||||||
%ifdef LINUX
|
%ifdef LINUX
|
||||||
push ecx ;push this pointer
|
push ecx ;push this pointer
|
||||||
%endif
|
%endif
|
||||||
push dword [ebp+12] ;push maxlenth
|
|
||||||
push dword [ebp+8] ;push buffer
|
|
||||||
call dword [edx+216] ;call IVEngineServer::GetGameDir
|
call dword [edx+216] ;call IVEngineServer::GetGameDir
|
||||||
%ifdef LINUX
|
%ifdef LINUX
|
||||||
add esp, 8 ;correct stack
|
add esp, 12 ;correct stack
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
pop ebp
|
pop ebp
|
||||||
ret
|
ret
|
||||||
|
|
||||||
thisLoadFunction:
|
thisLoadFunction:
|
||||||
@ -50,7 +50,11 @@ thisLoadFunction:
|
|||||||
mov ebp, esp
|
mov ebp, esp
|
||||||
|
|
||||||
;get factory
|
;get factory
|
||||||
|
%ifdef LINUX
|
||||||
|
mov eax, [ebp+12]
|
||||||
|
%else
|
||||||
mov eax, [ebp+8]
|
mov eax, [ebp+8]
|
||||||
|
%endif
|
||||||
|
|
||||||
push dword 0 ;NULL
|
push dword 0 ;NULL
|
||||||
push dword VENGINESERVER ;iface name
|
push dword VENGINESERVER ;iface name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user