mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
Duke: Scan for *.dat in addition to .grp, .zip, .ssi, etc.
git-svn-id: https://svn.eduke32.com/eduke32@6476 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
64d76db260
commit
1a256f2509
1 changed files with 12 additions and 7 deletions
|
@ -440,7 +440,6 @@ static void ProcessGroups(CACHE1D_FIND_REC *srch)
|
|||
|
||||
int32_t ScanGroups(void)
|
||||
{
|
||||
CACHE1D_FIND_REC *srch;
|
||||
struct grpcache *fg, *fgg;
|
||||
|
||||
initprintf("Searching for game data...\n");
|
||||
|
@ -448,13 +447,19 @@ int32_t ScanGroups(void)
|
|||
LoadGameList();
|
||||
LoadGroupsCache();
|
||||
|
||||
srch = klistpath("/", "*.grp", CACHE1D_FIND_FILE);
|
||||
ProcessGroups(srch);
|
||||
klistfree(srch);
|
||||
static char const *extensions[] =
|
||||
{
|
||||
"*.grp",
|
||||
"*.ssi",
|
||||
"*.dat",
|
||||
};
|
||||
|
||||
srch = klistpath("/", "*.ssi", CACHE1D_FIND_FILE);
|
||||
ProcessGroups(srch);
|
||||
klistfree(srch);
|
||||
for (char const *extension : extensions)
|
||||
{
|
||||
CACHE1D_FIND_REC *srch = klistpath("/", extension, CACHE1D_FIND_FILE);
|
||||
ProcessGroups(srch);
|
||||
klistfree(srch);
|
||||
}
|
||||
|
||||
FreeGroupsCache();
|
||||
|
||||
|
|
Loading…
Reference in a new issue