This commit is contained in:
Евгений Храмов 2023-05-14 17:26:09 +03:00
parent e9c34f6419
commit 95464e9702

@ -489,7 +489,7 @@ def modextract(id_mod, id_game_workshop):
os.remove(f"{dir_extract}/.mod")
modfile_bytes = b''
with open(os.path.join(dir_steam_workshop, 'mod.info'), 'rb') as f:
with open(os.path.join(dir_ark_mods, 'mod.info'), 'rb') as f:
data = f.read()
mapnamelen = struct.unpack_from('<L', data, offset=0)
mapnamelen = mapnamelen[0]