Skip to content

Commit

Permalink
Fix parsing of StyleVPKs inside zips
Browse files Browse the repository at this point in the history
This fixes #185
  • Loading branch information
TeamSpen210 committed Feb 9, 2016
1 parent 8b30e0b commit 26042c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/packageLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1389,13 +1389,13 @@ def parse(cls, data: ParseData):
os.makedirs(dest_folder, exist_ok=True)

zip_file = data.zip_file # type: ZipFile
zip_filenames = zip_file.namelist()
zip_filenames = set(zip_file.namelist())

has_files = False
file_count = 0

for file_count, name in enumerate(cls.iter_vpk_names()):
src = os.path.join('vpk', vpk_name + name)
src = 'vpk/' + vpk_name + name
if src not in zip_filenames:
break
dest = os.path.join(dest_folder, 'pak01' + name)
Expand Down

0 comments on commit 26042c5

Please sign in to comment.