Skip to content

Commit

Permalink
- fixed file system's zip loader to not strip away a 'filter/' prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Aug 11, 2021
1 parent c24f644 commit 436ec28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/filesystem/file_zip.cpp
Expand Up @@ -234,6 +234,8 @@ bool FZipFile::Open(bool quiet, LumpFilterInfo* filter)
}

name.ToLower();
if (name.IndexOf("filter/") == 0)
continue; // 'filter' is a reserved name of the file system.
if (name.IndexOf("__macosx") == 0)
continue; // skip Apple garbage. At this stage only the root folder matters.
if (!foundprefix)
Expand Down

0 comments on commit 436ec28

Please sign in to comment.