From fad34584b3019a9c46b4b2255e6428ffc3aa04b3 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Wed, 15 Jun 2011 22:09:26 +0000 Subject: - Small change to search path order - local files not in .pk3s take precedence over files in pk3s. Should make life easier for modders/mappers wanting to override textures that are already contained in some older pk3 - Make VM loading more robust, change loading order: when vm_* == 0 first try loading DLL, then QVM in *each* search directory/path - Fix FS_FileForHandle that would return a FILE pointer to invalid file handle 0 --- src/qcommon/vm_local.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/qcommon/vm_local.h') diff --git a/src/qcommon/vm_local.h b/src/qcommon/vm_local.h index c7270600..ee44133a 100644 --- a/src/qcommon/vm_local.h +++ b/src/qcommon/vm_local.h @@ -142,7 +142,8 @@ struct vm_s { //------------------------------------ - char name[MAX_QPATH]; + char name[MAX_QPATH]; + void *searchPath; // hint for FS_ReadFileDir() // for dynamic linked modules void *dllHandle; -- cgit