Merge "which" command upstream from Tremulous, patch provided by Chris Schwarz

This commit is contained in:
Thilo Schulz 2011-02-10 23:07:07 +00:00
parent 2c57226d9f
commit 4dc750aedb
3 changed files with 75 additions and 0 deletions

View file

@ -384,6 +384,9 @@ vmHeader_t *VM_LoadQVM( vm_t *vm, qboolean alloc ) {
return NULL;
}
// show where the qvm was loaded from
Cmd_ExecuteString( va( "which %s\n", filename ) );
if( LittleLong( header.h->vmMagic ) == VM_MAGIC_VER2 ) {
Com_Printf( "...which has vmMagic VM_MAGIC_VER2\n" );