mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
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:
parent
da6b206673
commit
042915f221
3 changed files with 14 additions and 1 deletions
|
@ -325,7 +325,7 @@ static void uploadtexture(int doalloc, int xsiz, int ysiz, int intexfmt, int tex
|
||||||
# include "lzwnew.h"
|
# include "lzwnew.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static char TEXCACHEDIR[] = "texcache";
|
char TEXCACHEDIR[] = "texcache";
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
char magic[8]; // 'Polymost'
|
char magic[8]; // 'Polymost'
|
||||||
|
|
|
@ -10770,6 +10770,16 @@ void app_main(int argc,const char **argv)
|
||||||
autoloadgrps(duke3dgrp);
|
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);
|
loaddefinitions_game(duke3ddef, TRUE);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
@ -71,6 +71,8 @@ static int getfilenames(char *path)
|
||||||
#define POPULATE_GAME 4
|
#define POPULATE_GAME 4
|
||||||
#define POPULATE_GAMEDIRS 8
|
#define POPULATE_GAMEDIRS 8
|
||||||
|
|
||||||
|
extern char TEXCACHEDIR[];
|
||||||
|
|
||||||
static void PopulateForm(int pgs)
|
static void PopulateForm(int pgs)
|
||||||
{
|
{
|
||||||
HWND hwnd;
|
HWND hwnd;
|
||||||
|
@ -184,6 +186,7 @@ static void PopulateForm(int pgs)
|
||||||
(void)ComboBox_SetCurSel(hwnd, j);
|
(void)ComboBox_SetCurSel(hwnd, j);
|
||||||
for (dirs=finddirs,i=1; dirs != NULL; dirs=dirs->next,i++)
|
for (dirs=finddirs,i=1; dirs != NULL; dirs=dirs->next,i++)
|
||||||
{
|
{
|
||||||
|
if (Bstrcmp(TEXCACHEDIR,dirs->name) == 0) continue;
|
||||||
Bsprintf(buf, "%s", dirs->name);
|
Bsprintf(buf, "%s", dirs->name);
|
||||||
j = ComboBox_AddString(hwnd, buf);
|
j = ComboBox_AddString(hwnd, buf);
|
||||||
(void)ComboBox_SetItemData(hwnd, j, i);
|
(void)ComboBox_SetItemData(hwnd, j, i);
|
||||||
|
|
Loading…
Reference in a new issue