Change config recognition method

This commit is contained in:
toasterbabe 2017-05-09 17:05:39 +01:00
parent fd81a82cca
commit 3e9cc51953
2 changed files with 4 additions and 6 deletions

View File

@ -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;
}

View File

@ -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])