mirror of
https://github.com/a2-4am/4cade.git
synced 2024-10-08 07:57:59 +00:00
closer to byte-identical to Mac build
This commit is contained in:
parent
8e14c1805a
commit
34b0bddbd2
@ -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"))
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user