From fdd98f0152440edb99cf6b379eac9833108e81c8 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sun, 14 May 2023 15:23:13 +0300 Subject: [PATCH] 1 --- hlna.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hlna.py b/hlna.py index e768cc4..fd4f3a2 100755 --- a/hlna.py +++ b/hlna.py @@ -379,7 +379,6 @@ def modextract(id_mod, id_game_workshop): return for dirpath, dirnames, filenames in os.walk(mod_steam_workshop): - print_line(dirnames) for dname in dirnames: os.makedirs(os.path.join(modextractdir, os.path.relpath(os.path.join(dirpath, dname), mod_steam_workshop)), exist_ok=True) # for fname in filenames: @@ -395,6 +394,7 @@ def modextract(id_mod, id_game_workshop): srcfile = os.path.join(root, name) dstfile = os.path.join(modextractdir, os.path.relpath(srcfile, mod_steam_workshop)) if not os.path.isfile(dstfile) or os.path.getmtime(srcfile) > os.path.getmtime(dstfile): + print_line(dstfile) shutil.copy2(srcfile, dstfile) modname = subprocess.check_output(['curl', '-s', 'https://steamcommunity.com/sharedfiles/filedetails/?id={}'.format(id_mod)]).decode('utf-8') @@ -418,7 +418,8 @@ def modextract(id_mod, id_game_workshop): modpath = ("../../../" + "ShooterGame" + "/Content/Mods/" + id_mod + "\x00").encode('utf-8') modpathlen = len(modpath) modfile_bytes += struct.pack('