mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-01-31 04:50:42 +00:00
- Don't try to load QVM/DLL files on pure servers
- Fallback after failed DLL load will be VMI_COMPILED, not INTERPRETED
This commit is contained in:
parent
9219cde4e8
commit
af5020c57c
2 changed files with 3 additions and 2 deletions
|
@ -1403,7 +1403,7 @@ vmInterpret_t FS_FindVM(void **startSearch, char *found, int foundlen, const cha
|
||||||
|
|
||||||
while(search)
|
while(search)
|
||||||
{
|
{
|
||||||
if(search->dir)
|
if(search->dir && !fs_numServerPaks)
|
||||||
{
|
{
|
||||||
dir = search->dir;
|
dir = search->dir;
|
||||||
|
|
||||||
|
|
|
@ -622,7 +622,8 @@ vm_t *VM_Create( const char *module, intptr_t (*systemCalls)(intptr_t *),
|
||||||
interpret = VMI_BYTECODE;
|
interpret = VMI_BYTECODE;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if ( interpret >= VMI_COMPILED ) {
|
if(interpret != VMI_BYTECODE)
|
||||||
|
{
|
||||||
vm->compiled = qtrue;
|
vm->compiled = qtrue;
|
||||||
VM_Compile( vm, header );
|
VM_Compile( vm, header );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue