mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
Recognize the .pk4 file extension when loading grps and zips for shits and giggles (.pk3 was already recognized).
git-svn-id: https://svn.eduke32.com/eduke32@3269 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
1c3f31b099
commit
5c59f785a1
2 changed files with 4 additions and 4 deletions
|
@ -326,17 +326,17 @@ int32_t fnlist_getnames(fnlist_t *fnl, const char *dirname, const char *pattern,
|
|||
}
|
||||
|
||||
|
||||
// loads all group (grp, zip, pk3) files in the given directory
|
||||
// loads all group (grp, zip, pk3/4) files in the given directory
|
||||
void G_LoadGroupsInDir(const char *dirname)
|
||||
{
|
||||
static const char *extensions[3] = { "*.grp", "*.zip", "*.pk3" };
|
||||
static const char *extensions[4] = { "*.grp", "*.zip", "*.pk3", "*.pk4" };
|
||||
|
||||
char buf[BMAX_PATH];
|
||||
int32_t i;
|
||||
|
||||
fnlist_t fnlist = FNLIST_INITIALIZER;
|
||||
|
||||
for (i=0; i<3; i++)
|
||||
for (i=0; i<4; i++)
|
||||
{
|
||||
CACHE1D_FIND_REC *rec;
|
||||
|
||||
|
|
|
@ -9195,7 +9195,7 @@ static void G_CheckCommandLine(int32_t argc, const char **argv)
|
|||
CommandMap = argv[i++];
|
||||
continue;
|
||||
}
|
||||
if (!Bstrcasecmp(k,".grp") || !Bstrcasecmp(k,".zip") || !Bstrcasecmp(k,".pk3"))
|
||||
if (!Bstrcasecmp(k,".grp") || !Bstrcasecmp(k,".zip") || !Bstrcasecmp(k,".pk3") || !Bstrcasecmp(k,".pk4"))
|
||||
{
|
||||
G_AddGroup(argv[i++]);
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue