mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
lol i never tested this thing in real use
This commit is contained in:
parent
e61350d35a
commit
a620bb4ef4
@ -1,4 +1,4 @@
|
||||
prefix = "eft_charge_ak_*" # Atts with this prefix in lua name will be packed. Uses wildcards ( *_ak_* )
|
||||
prefix = "eft_grip_ak_*" # Atts with this prefix in lua name will be packed. Uses wildcards ( *_ak_* )
|
||||
arc = 1 # 0 for ArcCW bulk atts, 1 for ARC9 bulk atts
|
||||
|
||||
import glob
|
||||
@ -11,12 +11,13 @@ else:
|
||||
|
||||
for attpath in glob.glob(prefix + '.lua'): # process
|
||||
attlua = open(attpath, 'r')
|
||||
content = content + "\n/////////////////////////////////////// "+ os.path.basename(attpath)[:-4] + "\n\n\n"
|
||||
if arc:
|
||||
content = content + 'ATT = {}\n\n' + attlua.read() + '\n\nARC9.LoadAttachment(ATT, "' + os.path.basename(attpath) + '")\n\n'
|
||||
content = content + 'ATT = {}\n\n' + attlua.read() + '\n\n\nARC9.LoadAttachment(ATT, "' + os.path.basename(attpath)[:-4] + '")\n\n'
|
||||
else:
|
||||
content = content + 'att = {}\n\n' + attlua.read() + '\n\nArcCW.LoadAttachmentType(att, "' + os.path.basename(attpath) + '")\n\n'
|
||||
content = content + 'att = {}\n\n' + attlua.read() + '\n\n\nArcCW.LoadAttachmentType(att, "' + os.path.basename(attpath)[:-4] + '")\n\n'
|
||||
attlua.close()
|
||||
|
||||
bulk = open(prefix + 'bulk.lua', 'w+')
|
||||
bulk = open(prefix[:-1] + 'bulk.lua', 'w+')
|
||||
bulk.write(content)
|
||||
bulk.close()
|
Loading…
Reference in New Issue
Block a user