mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
Disallow "autoload" as a choice for the game dir in the Win32 startup window.
git-svn-id: https://svn.eduke32.com/eduke32@5125 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5c69ae7d11
commit
4d3cbc64f1
1 changed files with 6 additions and 6 deletions
|
@ -73,22 +73,17 @@ static HWND pages[3] =
|
||||||
static int32_t done = -1, mode = TAB_CONFIG;
|
static int32_t done = -1, mode = TAB_CONFIG;
|
||||||
|
|
||||||
static CACHE1D_FIND_REC *finddirs=NULL;
|
static CACHE1D_FIND_REC *finddirs=NULL;
|
||||||
static int32_t numdirs=0;
|
|
||||||
|
|
||||||
static inline void clearfilenames(void)
|
static inline void clearfilenames(void)
|
||||||
{
|
{
|
||||||
klistfree(finddirs);
|
klistfree(finddirs);
|
||||||
finddirs = NULL;
|
finddirs = NULL;
|
||||||
numdirs = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int32_t getfilenames(char *path)
|
static inline int32_t getfilenames(char *path)
|
||||||
{
|
{
|
||||||
CACHE1D_FIND_REC *r;
|
|
||||||
|
|
||||||
clearfilenames();
|
clearfilenames();
|
||||||
finddirs = klistpath(path,"*",CACHE1D_FIND_DIR);
|
finddirs = klistpath(path,"*",CACHE1D_FIND_DIR);
|
||||||
for (r = finddirs; r; r=r->next) numdirs++;
|
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -127,12 +122,17 @@ static void PopulateForm(int32_t pgs)
|
||||||
j = ComboBox_AddString(hwnd, "None");
|
j = ComboBox_AddString(hwnd, "None");
|
||||||
(void)ComboBox_SetItemData(hwnd, j, 0);
|
(void)ComboBox_SetItemData(hwnd, j, 0);
|
||||||
(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)
|
||||||
{
|
{
|
||||||
|
if (Bstrcasecmp(dirs->name, "autoload") == 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
(void)ComboBox_AddString(hwnd, dirs->name);
|
(void)ComboBox_AddString(hwnd, dirs->name);
|
||||||
(void)ComboBox_SetItemData(hwnd, i, i);
|
(void)ComboBox_SetItemData(hwnd, i, i);
|
||||||
if (Bstrcasecmp(dirs->name,settings.gamedir) == 0)
|
if (Bstrcasecmp(dirs->name,settings.gamedir) == 0)
|
||||||
(void)ComboBox_SetCurSel(hwnd, i);
|
(void)ComboBox_SetCurSel(hwnd, i);
|
||||||
|
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue