mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 17:30:51 +00:00
- fixed: The full dotted lump filter string was never used.
The code added all partial matches to the file system but not the full match.
This commit is contained in:
parent
f0d208bf56
commit
724c8d4251
1 changed files with 2 additions and 5 deletions
|
@ -360,15 +360,12 @@ void FResourceFile::PostProcessArchive(void *lumps, size_t lumpsize, LumpFilterI
|
||||||
int lastpos = -1;
|
int lastpos = -1;
|
||||||
FString file;
|
FString file;
|
||||||
FString LumpFilter = filter->dotFilter;
|
FString LumpFilter = filter->dotFilter;
|
||||||
if (LumpFilter.IndexOf('.') < 0)
|
while ((len = LumpFilter.IndexOf('.', lastpos + 1)) > 0)
|
||||||
{
|
|
||||||
max -= FilterLumps(LumpFilter, lumps, lumpsize, max);
|
|
||||||
}
|
|
||||||
else while ((len = LumpFilter.IndexOf('.', lastpos+1)) > 0)
|
|
||||||
{
|
{
|
||||||
max -= FilterLumps(LumpFilter.Left(len), lumps, lumpsize, max);
|
max -= FilterLumps(LumpFilter.Left(len), lumps, lumpsize, max);
|
||||||
lastpos = len;
|
lastpos = len;
|
||||||
}
|
}
|
||||||
|
max -= FilterLumps(LumpFilter, lumps, lumpsize, max);
|
||||||
JunkLeftoverFilters(lumps, lumpsize, max);
|
JunkLeftoverFilters(lumps, lumpsize, max);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue