always try native dll first

This commit is contained in:
Ludwig Nussel 2005-08-30 15:38:05 +00:00
parent 4fb1caf6bd
commit 2078cfa9a0
2 changed files with 4 additions and 2 deletions

View File

@ -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 );

View File

@ -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 );