closer to byte-identical to Mac build

This commit is contained in:
Peter Ferrie 2021-10-22 07:12:57 -07:00
parent 8e14c1805a
commit 34b0bddbd2
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,7 @@
a = new ActiveXObject("scripting.filesystemobject")
b = a.opentextfile("res\\GAMES.CONF")
c = []
q = a.createtextfile("build\\GAMES.CONF")
while (!b.atendofstream)
{
@ -28,10 +29,11 @@ while (!b.atendofstream)
if (d.length > 0)
{
q.writeline(d)
f = d.indexOf(",") + 1
c.push(d.substr(f, e - f))
}
}
a.createtextfile("build\\GAMES.CONF").write(c.toString().replace(/,/g, "\n"))
q.writeline(d)
a.createtextfile("build\\GAMES.SORTED").write(c.sort().toString().replace(/,/g, "\n"))

View File

@ -1,5 +1,5 @@
a = new ActiveXObject("scripting.filesystemobject")
b = a.opentextfile(WScript.Arguments(1))
c = b.readall()
c = b.readall().replace(/\r\n/g, "\n")
b.close()
a.createtextfile(WScript.Arguments(1)).write(String(c + Array(512).join(String.fromCharCode(0))).substr(0, 512))