1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-29 11:24:19 +01:00

fixed linux issues

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40354
This commit is contained in:
David Anderson 2007-03-31 17:51:08 +00:00
parent 32dc2d619f
commit f4865a2a09

View File

@ -32,17 +32,17 @@ _GetGameDir:
mov ecx, [engine] ;get this pointer
mov edx, [ecx] ;get the vtable
push dword [ebp+12] ;push maxlenth
push dword [ebp+8] ;push buffer
%ifdef LINUX
push ecx ;push this pointer
%endif
push dword [ebp+12] ;push maxlenth
push dword [ebp+8] ;push buffer
call dword [edx+216] ;call IVEngineServer::GetGameDir
%ifdef LINUX
add esp, 8 ;correct stack
add esp, 12 ;correct stack
%endif
pop ebp
pop ebp
ret
thisLoadFunction:
@ -50,7 +50,11 @@ thisLoadFunction:
mov ebp, esp
;get factory
%ifdef LINUX
mov eax, [ebp+12]
%else
mov eax, [ebp+8]
%endif
push dword 0 ;NULL
push dword VENGINESERVER ;iface name