mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 08:20:40 +00:00
work towards a more secure qfs
This commit is contained in:
parent
68d2167c9e
commit
851d203916
19 changed files with 193 additions and 167 deletions
|
@ -431,13 +431,9 @@ Mod_MakeAliasModelDisplayLists (model_t *m, aliashdr_t *hdr, void *_m, int _s, i
|
|||
|
||||
if (do_cache) {
|
||||
// save out the cached version
|
||||
snprintf (fullpath, sizeof (fullpath), "%s/%s", qfs_gamedir_path,
|
||||
cache);
|
||||
f = Qopen (fullpath, "wbz9");
|
||||
if (!f) {
|
||||
QFS_CreatePath (fullpath);
|
||||
f = Qopen (fullpath, "wb");
|
||||
}
|
||||
snprintf (fullpath, sizeof (fullpath), "%s/%s",
|
||||
qfs_gamedir->dir.def, cache);
|
||||
f = QFS_WOpen (fullpath, 9);
|
||||
|
||||
if (f) {
|
||||
struct mdfour md;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue