ignore texcache dir in startup window mod list

git-svn-id: https://svn.eduke32.com/eduke32@988 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2008-08-17 11:40:27 +00:00
parent da6b206673
commit 042915f221
3 changed files with 14 additions and 1 deletions

View file

@ -325,7 +325,7 @@ static void uploadtexture(int doalloc, int xsiz, int ysiz, int intexfmt, int tex
# include "lzwnew.h"
#endif
static char TEXCACHEDIR[] = "texcache";
char TEXCACHEDIR[] = "texcache";
typedef struct
{
char magic[8]; // 'Polymost'

View file

@ -10770,6 +10770,16 @@ void app_main(int argc,const char **argv)
autoloadgrps(duke3dgrp);
}
Bsprintf(tempbuf,"%s/",mod_dir);
getfilenames(tempbuf,"*.grp");
while (findfiles) { Bsprintf(tempbuf,"%s/%s",mod_dir,findfiles->name); initprintf("Using group file '%s'.\n",tempbuf); initgroupfile(tempbuf); findfiles = findfiles->next; }
Bsprintf(tempbuf,"%s/",mod_dir);
getfilenames(tempbuf,"*.zip");
while (findfiles) { Bsprintf(tempbuf,"%s/%s",mod_dir,findfiles->name); initprintf("Using group file '%s'.\n",tempbuf); initgroupfile(tempbuf); findfiles = findfiles->next; }
Bsprintf(tempbuf,"%s/",mod_dir);
getfilenames(tempbuf,"*.pk3");
while (findfiles) { Bsprintf(tempbuf,"%s/%s",mod_dir,findfiles->name); initprintf("Using group file '%s'.\n",tempbuf); initgroupfile(tempbuf); findfiles = findfiles->next; }
loaddefinitions_game(duke3ddef, TRUE);
{

View file

@ -71,6 +71,8 @@ static int getfilenames(char *path)
#define POPULATE_GAME 4
#define POPULATE_GAMEDIRS 8
extern char TEXCACHEDIR[];
static void PopulateForm(int pgs)
{
HWND hwnd;
@ -184,6 +186,7 @@ static void PopulateForm(int pgs)
(void)ComboBox_SetCurSel(hwnd, j);
for (dirs=finddirs,i=1; dirs != NULL; dirs=dirs->next,i++)
{
if (Bstrcmp(TEXCACHEDIR,dirs->name) == 0) continue;
Bsprintf(buf, "%s", dirs->name);
j = ComboBox_AddString(hwnd, buf);
(void)ComboBox_SetItemData(hwnd, j, i);