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:
hendricks266 2017-10-15 23:10:03 +00:00
parent 64d76db260
commit 1a256f2509

View file

@ -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();