Merge branch 'logloaded' into 'master'

Mark new-style log names as loaded in addons menu

See merge request STJr/SRB2Internal!340
This commit is contained in:
toaster 2019-09-20 13:39:08 -04:00
commit 07120aeda4
1 changed files with 1 additions and 1 deletions

View File

@ -751,7 +751,7 @@ boolean preparefilemenu(boolean samedepth)
}
else if (ext == EXT_TXT)
{
if (!strcmp(dent->d_name, "log.txt") || !strcmp(dent->d_name, "errorlog.txt"))
if (!strncmp(dent->d_name, "log-", 4) || !strcmp(dent->d_name, "errorlog.txt"))
ext |= EXT_LOADED;
}