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:
terminx 2012-12-12 02:53:10 +00:00
parent 1c3f31b099
commit 5c59f785a1
2 changed files with 4 additions and 4 deletions

View file

@ -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) 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]; char buf[BMAX_PATH];
int32_t i; int32_t i;
fnlist_t fnlist = FNLIST_INITIALIZER; fnlist_t fnlist = FNLIST_INITIALIZER;
for (i=0; i<3; i++) for (i=0; i<4; i++)
{ {
CACHE1D_FIND_REC *rec; CACHE1D_FIND_REC *rec;

View file

@ -9195,7 +9195,7 @@ static void G_CheckCommandLine(int32_t argc, const char **argv)
CommandMap = argv[i++]; CommandMap = argv[i++];
continue; 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++]); G_AddGroup(argv[i++]);
continue; continue;