34 lines
827 B
C++
34 lines
827 B
C++
|
// vmachine.cpp -- wrapper to fake virtual machine for client
|
||
|
|
||
|
#include "vmachine.h"
|
||
|
#pragma warning (disable : 4514)
|
||
|
/*
|
||
|
==============================================================
|
||
|
|
||
|
VIRTUAL MACHINE
|
||
|
|
||
|
==============================================================
|
||
|
*/
|
||
|
int VM_Call( int callnum, ... )
|
||
|
{
|
||
|
return cgvm.entryPoint( (&callnum)[0], (&callnum)[1], (&callnum)[2], (&callnum)[3],
|
||
|
(&callnum)[4], (&callnum)[5], (&callnum)[6], (&callnum)[7],
|
||
|
(&callnum)[8], (&callnum)[9] );
|
||
|
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
============
|
||
|
VM_DllSyscall
|
||
|
|
||
|
we pass this to the cgame dll to call back into the client
|
||
|
============
|
||
|
*/
|
||
|
extern int CL_CgameSystemCalls( int *args );
|
||
|
extern int CL_UISystemCalls( int *args );
|
||
|
|
||
|
int VM_DllSyscall( int arg, ... ) {
|
||
|
// return cgvm->systemCall( &arg );
|
||
|
return CL_CgameSystemCalls( &arg );
|
||
|
}
|