mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-28 23:02:37 +00:00
always try native dll first
This commit is contained in:
parent
4fb1caf6bd
commit
2078cfa9a0
2 changed files with 4 additions and 2 deletions
|
@ -484,7 +484,8 @@ vm_t *VM_Create( const char *module, int (*systemCalls)(int *),
|
|||
}
|
||||
}
|
||||
|
||||
if ( interpret == VMI_NATIVE ) {
|
||||
// always try dll first? -- ln
|
||||
if ( 1 || interpret == VMI_NATIVE ) {
|
||||
// try to load as a system dll
|
||||
Com_Printf( "Loading dll file %s.\n", vm->name );
|
||||
vm->dllHandle = Sys_LoadDll( module, vm->fqpath , &vm->entryPoint, VM_DllSyscall );
|
||||
|
|
|
@ -775,7 +775,8 @@ void *Sys_LoadDll( const char *name, char *fqpath ,
|
|||
|
||||
if ( !libHandle )
|
||||
{
|
||||
#ifndef NDEBUG // bk001206 - in debug abort on failure
|
||||
#if 0 // don't abort -- ln
|
||||
//#ifndef NDEBUG // bk001206 - in debug abort on failure
|
||||
Com_Error ( ERR_FATAL, "Sys_LoadDll(%s) failed dlopen() completely!\n", name );
|
||||
#else
|
||||
Com_Printf ( "Sys_LoadDll(%s) failed dlopen() completely!\n", name );
|
||||
|
|
Loading…
Reference in a new issue