Fix passing arguments to VM dylib on Apple M1

The engine function pointer to vmMain used variadic arguments but
the vmMain function in the dylib has explicit arguments. Evidently
the arguments are stored on the stack and/or registers differently.

Found by fretn.
This commit is contained in:
Zack Middleton 2021-11-19 13:45:35 -05:00
parent 68ac81316d
commit 75ae9119e6
3 changed files with 5 additions and 3 deletions

View file

@ -579,7 +579,7 @@ Used to load a development dll instead of a virtual machine
=================
*/
void *Sys_LoadGameDll(const char *name,
intptr_t (QDECL **entryPoint)(int, ...),
vmMainProc *entryPoint,
intptr_t (*systemcalls)(intptr_t, ...))
{
void *libHandle;