1
This commit is contained in:
parent
27b3c24ee1
commit
294187ec93
7
hlna.py
7
hlna.py
@ -427,9 +427,10 @@ def modextract(id_mod, id_game_workshop):
|
|||||||
pos = pos + 4 + mapfilelen
|
pos = pos + 4 + mapfilelen
|
||||||
modfile_bytes += b'\x33\xFF\x22\xFF\x02\x00\x00\x00\x01'
|
modfile_bytes += b'\x33\xFF\x22\xFF\x02\x00\x00\x00\x01'
|
||||||
|
|
||||||
with open("{}/modmeta.info".format(modextractdir), 'ab') as f:
|
with open(f"{modextractdir}/modmeta.info", 'ab') as f:
|
||||||
if os.path.isfile("{}/modmeta.info".format(modextractdir)):
|
if os.path.isfile(f"{modextractdir}/modmeta.info"):
|
||||||
f.write(open("{}/modmeta.info".format(modextractdir), 'rb').read())
|
f.write(open(f"{modextractdir}/modmeta.mod", 'rb').read())
|
||||||
|
f.close()
|
||||||
else:
|
else:
|
||||||
f.write(b'\x01\x00\x00\x00\x08\x00\x00\x00ModType\x00\x02\x00\x00\x001\x00')
|
f.write(b'\x01\x00\x00\x00\x08\x00\x00\x00ModType\x00\x02\x00\x00\x001\x00')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user