mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-12 23:54:33 +00:00
- fixed: lump filters without any dot in the name did not work.
This commit is contained in:
parent
e55a935220
commit
077d4e08bb
1 changed files with 5 additions and 2 deletions
|
@ -413,8 +413,11 @@ void FResourceFile::PostProcessArchive(void *lumps, size_t lumpsize)
|
||||||
long len;
|
long len;
|
||||||
int lastpos = -1;
|
int lastpos = -1;
|
||||||
FString file;
|
FString file;
|
||||||
|
if (LumpFilter.IndexOf('.') < 0)
|
||||||
while ((len = LumpFilterIWAD.IndexOf('.', lastpos+1)) > 0)
|
{
|
||||||
|
max -= FilterLumps(LumpFilter, lumps, lumpsize, max);
|
||||||
|
}
|
||||||
|
else while ((len = LumpFilterIWAD.IndexOf('.', lastpos+1)) > 0)
|
||||||
{
|
{
|
||||||
max -= FilterLumps(LumpFilterIWAD.Left(len), lumps, lumpsize, max);
|
max -= FilterLumps(LumpFilterIWAD.Left(len), lumps, lumpsize, max);
|
||||||
lastpos = len;
|
lastpos = len;
|
||||||
|
|
Loading…
Reference in a new issue