mirror of
https://github.com/a2-4am/pitch-dark.git
synced 2025-01-01 14:31:16 +00:00
8 lines
318 B
JavaScript
8 lines
318 B
JavaScript
a=new ActiveXObject("scripting.filesystemobject")
|
|
b=a.opentextfile("src/constants.a").readall()
|
|
b=b.substr(b.search(c=/kPitchDarkBinaryAddress/))
|
|
d=a.opentextfile(e=WScript.Arguments(0))
|
|
b=d.readall().replace(c,parseInt(b.substr(b.search(/\$/)+1),16).toString(16).toUpperCase())
|
|
d.close()
|
|
a.createtextfile(e).write(b)
|