mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-23 20:52:54 +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
|
// try to load as a system dll
|
||||||
Com_Printf( "Loading dll file %s.\n", vm->name );
|
Com_Printf( "Loading dll file %s.\n", vm->name );
|
||||||
vm->dllHandle = Sys_LoadDll( module, vm->fqpath , &vm->entryPoint, VM_DllSyscall );
|
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 )
|
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 );
|
Com_Error ( ERR_FATAL, "Sys_LoadDll(%s) failed dlopen() completely!\n", name );
|
||||||
#else
|
#else
|
||||||
Com_Printf ( "Sys_LoadDll(%s) failed dlopen() completely!\n", name );
|
Com_Printf ( "Sys_LoadDll(%s) failed dlopen() completely!\n", name );
|
||||||
|
|
Loading…
Reference in a new issue