str({dir_shooter})

This commit is contained in:
Евгений Храмов 2023-05-14 20:47:31 +03:00
parent 6a7e42afd1
commit 7dd9655f7c

@ -499,7 +499,7 @@ def modextract(id_mod, id_game_workshop):
pos = mapnamelen + 8
modname = (modname or mapname)
modnamelen = len(modname)
modpath = f"../../../" + {dir_shooter} + "/Content/Mods/" + id_mod
modpath = f"../../../" + str({dir_shooter}) + "/Content/Mods/" + id_mod
modpathlen = len(modpath)
with open(f"{dir_ark_mods}.mod", "wb") as mod:
mod.write(struct.pack('<LLL{}sL{}sL'.format(modnamelen, modpathlen), int(id_mod), 0, modnamelen, modname, modpathlen, modpath, nummaps))