This commit is contained in:
Евгений Храмов 2023-05-14 17:45:45 +03:00
parent a0d5b7f7df
commit ea7b80e0d5

@ -520,9 +520,6 @@ def modextract(id_mod, id_game_workshop):
with open(f"{dir_mods_ark}.mod", "wb") as f_out:
f_out.write(b'\x01\x00\x00\x00\x08\x00\x00\x00ModType\x00\x02\x00\x00\x001\x00')
with open(f"{dir_extract}.mod", 'wb') as f:
f.write(modfile_bytes)
if dir_extract != dir_ark_mods:
if not os.path.isdir(dir_ark_mods):
os.makedirs(dir_ark_mods)