mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-22 10:52:23 +00:00
Change config recognition method
This commit is contained in:
parent
fd81a82cca
commit
3e9cc51953
2 changed files with 4 additions and 6 deletions
|
@ -702,11 +702,9 @@ boolean preparefilemenu(boolean samedepth)
|
|||
if (!strcmp(dent->d_name, "log.txt") || !strcmp(dent->d_name, "errorlog.txt"))
|
||||
ext |= EXT_LOADED;
|
||||
}
|
||||
else if (ext == EXT_CFG)
|
||||
{
|
||||
if (!strcmp(dent->d_name, "config.cfg"))
|
||||
ext |= EXT_LOADED;
|
||||
}
|
||||
|
||||
if (!strcmp(dent->d_name, configfile))
|
||||
ext |= EXT_LOADED;
|
||||
|
||||
folder = 0;
|
||||
}
|
||||
|
|
|
@ -4912,7 +4912,7 @@ static void M_DrawAddons(void)
|
|||
|
||||
V_DrawSmallScaledPatch(x-(16+4), y, (flags & V_TRANSLUCENT), addonsp[((UINT8)(dirmenu[i][DIR_TYPE]) & ~EXT_LOADED)]);
|
||||
|
||||
if ((type & EXT_LOADED) && ((type &~ EXT_LOADED) >= EXT_LOADSTART))
|
||||
if (type & EXT_LOADED)
|
||||
V_DrawSmallScaledPatch(x-(16+4), y, 0, addonsp[NUM_EXT+3]);
|
||||
|
||||
if ((size_t)i == dir_on[menudepthleft])
|
||||
|
|
Loading…
Reference in a new issue