mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10: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)
|
int32_t ScanGroups(void)
|
||||||
{
|
{
|
||||||
CACHE1D_FIND_REC *srch;
|
|
||||||
struct grpcache *fg, *fgg;
|
struct grpcache *fg, *fgg;
|
||||||
|
|
||||||
initprintf("Searching for game data...\n");
|
initprintf("Searching for game data...\n");
|
||||||
|
@ -448,13 +447,19 @@ int32_t ScanGroups(void)
|
||||||
LoadGameList();
|
LoadGameList();
|
||||||
LoadGroupsCache();
|
LoadGroupsCache();
|
||||||
|
|
||||||
srch = klistpath("/", "*.grp", CACHE1D_FIND_FILE);
|
static char const *extensions[] =
|
||||||
ProcessGroups(srch);
|
{
|
||||||
klistfree(srch);
|
"*.grp",
|
||||||
|
"*.ssi",
|
||||||
|
"*.dat",
|
||||||
|
};
|
||||||
|
|
||||||
srch = klistpath("/", "*.ssi", CACHE1D_FIND_FILE);
|
for (char const *extension : extensions)
|
||||||
ProcessGroups(srch);
|
{
|
||||||
klistfree(srch);
|
CACHE1D_FIND_REC *srch = klistpath("/", extension, CACHE1D_FIND_FILE);
|
||||||
|
ProcessGroups(srch);
|
||||||
|
klistfree(srch);
|
||||||
|
}
|
||||||
|
|
||||||
FreeGroupsCache();
|
FreeGroupsCache();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue