mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +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 CACHE1D_FIND_REC *finddirs=NULL;
|
||||
static int32_t numdirs=0;
|
||||
|
||||
static inline void clearfilenames(void)
|
||||
{
|
||||
klistfree(finddirs);
|
||||
finddirs = NULL;
|
||||
numdirs = 0;
|
||||
}
|
||||
|
||||
static inline int32_t getfilenames(char *path)
|
||||
{
|
||||
CACHE1D_FIND_REC *r;
|
||||
|
||||
clearfilenames();
|
||||
finddirs = klistpath(path,"*",CACHE1D_FIND_DIR);
|
||||
for (r = finddirs; r; r=r->next) numdirs++;
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
@ -127,12 +122,17 @@ static void PopulateForm(int32_t pgs)
|
|||
j = ComboBox_AddString(hwnd, "None");
|
||||
(void)ComboBox_SetItemData(hwnd, j, 0);
|
||||
(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_SetItemData(hwnd, i, i);
|
||||
if (Bstrcasecmp(dirs->name,settings.gamedir) == 0)
|
||||
(void)ComboBox_SetCurSel(hwnd, i);
|
||||
|
||||
i++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue