Skip to content

Commit 4e33989

Browse files
cursoragenttimfox
andcommitted
VM: print diagnostic when QVM not found after native load fails
When loadNative fails (e.g. no ui_aarch64.so) and VM_LoadQVM also fails, silentQVM suppressed the message. Now print that ui.qvm was not found to help diagnose VM_Create on UI failed. Co-authored-by: Tim Fox <timfox@outlook.com>
1 parent d895d28 commit 4e33989

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/qcommon/vm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,8 @@ static vmHeader_t *VM_LoadQVM( vm_t *vm, qboolean alloc ) {
776776
if ( !header ) {
777777
if ( !vm->silentQVM ) {
778778
Com_Printf( "Failed.\n" );
779+
} else {
780+
Com_Printf( S_COLOR_YELLOW "VM_LoadQVM: %s.qvm not found (tried modules/ and vm/)\n", vm->name );
779781
}
780782
VM_Free( vm );
781783
return NULL;

0 commit comments

Comments
 (0)