1
This commit is contained in:
parent
e1ee0871bf
commit
add187acb0
5
hlna.py
5
hlna.py
@ -471,11 +471,12 @@ def modextract(id_mod, id_game_workshop):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
for curdir, subdirs, files in os.walk(os.path.join(dir_steam_workshop)):
|
for curdir, subdirs, files in os.walk(os.path.join(dir_steam_workshop)):
|
||||||
for i, file in enumerate(files):
|
for file in files:
|
||||||
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(subdirs[i], name))
|
curdir = dir_extract
|
||||||
|
dst = os.path.join(curdir, name)
|
||||||
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