-Added read-only support for files outside of data/ to the new vm.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4309
d7cf8633-e32d-0410-b094-
e92efae38249
Cvar_SetValueQuick(&forceqmenu,1);
// use -useqmenu for debugging proposes, cause it starts
// the normal quake menu only the first time
- else if(COM_CheckParm("-useqmenu"))
+ if(COM_CheckParm("-useqmenu"))
MR_SetRouting (TRUE);
-
- MR_SetRouting (FALSE);
+ else
+ MR_SetRouting (FALSE);
}
return;
}
VM_FILES[filenum] = FS_Open(va("data/%s", filename), modestring, false);
+ if (VM_FILES[filenum] == NULL && mode == 0)
+ VM_FILES[filenum] = FS_Open(va("%s", filename), modestring, false);
+
if (VM_FILES[filenum] == NULL)
PRVM_G_FLOAT(OFS_RETURN) = -1;
else