Files

11 lines
528 B
Python

from pathlib import Path
import struct
p=Path('C:/Amiga/HD0/Utilities/AmberMod')
b=bytearray((p/'ModPlayer.info').read_bytes())
b[48]=4;b[50:54]=struct.pack('>I',1);b[54:58]=struct.pack('>I',1)
def s(t):
z=t.encode('ascii')+b'\0';return struct.pack('>I',len(z))+z
b+=s('SYS:C/IconX')+struct.pack('>I',8)+s('WINDOW=CON:0/0/640/80/MOD Player/AUTO/CLOSE')
(p/'MOD.info').write_bytes(b)
(p/'MOD').write_bytes(b'Stack 131072\nRun >NIL: SYS:Utilities/HippoPlayer/HiP HIDE\nWait 1 SECS\nRun >NIL: SYS:Utilities/AmberMod/ModPlayer\n')