4cade/bin/changebootloader.js
Peter Ferrie 73f8a2d635 sync latest, hook up seek, now Lode Runner can start
use of $1Fxx causes conflict, though
2018-10-31 22:48:35 -07:00

8 lines
258 B
JavaScript

a = new ActiveXObject("scripting.filesystemobject")
b = a.opentextfile(WScript.Arguments(0))
c = b.read(0x40)
b.skip(0x200)
d = b.read(0x1fff600)
b.close()
b=a.createtextfile(WScript.Arguments(0), 1).write(c+a.opentextfile(WScript.Arguments(1)).read(512)+d)