This commit is contained in:
Евгений Храмов 2023-05-14 16:53:07 +03:00
parent 878ab8dbe6
commit bea0d9e76e

@ -475,7 +475,7 @@ def modextract(id_mod, id_game_workshop):
name, ext = os.path.splitext(file)
if ext == ".z":
src = os.path.join(curdir, file)
dst = os.path.join(dir_extract, os.path.relpath(os.path.join(dir_steam_workshop, subdirs[i]), file))
dst = os.path.join(dir_extract, os.path.relpath(os.path.join(dir_steam_workshop, subdirs[i]), name))
uncompressed = os.path.join(curdir, file + ".uncompressed_size")
unpack(src, dst)
print("[+] Extracted " + file)