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:
parent
68ac81316d
commit
75ae9119e6
3 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue