Browse Source

filesystem: expose a special flag for archive mounter to skip included WADs

pull/2/head
Alibek Omarov 1 year ago
parent
commit
cd46ad19a3
  1. 2
      filesystem/filesystem.c
  2. 2
      filesystem/filesystem.h

2
filesystem/filesystem.c

@ -315,7 +315,7 @@ searchpath_t *FS_AddArchive_Fullpath( const fs_archive_t *archive, const char *f @@ -315,7 +315,7 @@ searchpath_t *FS_AddArchive_Fullpath( const fs_archive_t *archive, const char *f
fs_searchpaths = search;
// time to add in search list all the wads from this archive
if( archive->load_wads )
if( archive->load_wads && !FBitSet( flags, FS_SKIP_ARCHIVED_WADS ))
{
stringlist_t list;
int i;

2
filesystem/filesystem.h

@ -43,6 +43,8 @@ enum @@ -43,6 +43,8 @@ enum
FS_CUSTOM_PATH = BIT( 3 ), // gamedir but with custom/mod data
FS_GAMERODIR_PATH = BIT( 4 ), // gamedir but read-only
FS_SKIP_ARCHIVED_WADS = BIT( 5 ), // don't mount wads inside archives automatically
FS_GAMEDIRONLY_SEARCH_FLAGS = FS_GAMEDIR_PATH | FS_CUSTOM_PATH | FS_GAMERODIR_PATH
};

Loading…
Cancel
Save