1
This commit is contained in:
parent
3492a34f45
commit
54930c8368
4
hlna.py
4
hlna.py
@ -128,7 +128,7 @@ def unpack(src, dst):
|
|||||||
raise SignatureUnpackException(msg)
|
raise SignatureUnpackException(msg)
|
||||||
|
|
||||||
#Write the extracted data to disk
|
#Write the extracted data to disk
|
||||||
with open(dst, 'wb') as f:
|
with open(f"{dst}/, 'wb'") as f:
|
||||||
f.write(data)
|
f.write(data)
|
||||||
logging.info("Archive has been extracted.")
|
logging.info("Archive has been extracted.")
|
||||||
|
|
||||||
@ -475,7 +475,7 @@ def modextract(id_mod, id_game_workshop):
|
|||||||
name, ext = os.path.splitext(file)
|
name, ext = os.path.splitext(file)
|
||||||
if ext == ".z":
|
if ext == ".z":
|
||||||
src = os.path.join(curdir, file)
|
src = os.path.join(curdir, file)
|
||||||
dst = os.path.join(dir_extract, os.path.relpath(os.path.join(dirpath, subdirs[i], "/"), dir_steam_workshop))
|
dst = os.path.join(dir_extract, os.path.relpath(os.path.join(dirpath, subdirs[i]), dir_steam_workshop))
|
||||||
uncompressed = os.path.join(curdir, file + ".uncompressed_size")
|
uncompressed = os.path.join(curdir, file + ".uncompressed_size")
|
||||||
unpack(src, dst)
|
unpack(src, dst)
|
||||||
print("[+] Extracted " + file)
|
print("[+] Extracted " + file)
|
||||||
|
Loading…
Reference in New Issue
Block a user