mirror of
https://github.com/a2-4am/4cade.git
synced 2025-03-10 13:31:17 +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")
|
a = new ActiveXObject("scripting.filesystemobject")
|
||||||
b = a.opentextfile("res\\GAMES.CONF")
|
b = a.opentextfile("res\\GAMES.CONF")
|
||||||
c = []
|
c = []
|
||||||
|
q = a.createtextfile("build\\GAMES.CONF")
|
||||||
|
|
||||||
while (!b.atendofstream)
|
while (!b.atendofstream)
|
||||||
{
|
{
|
||||||
@ -28,10 +29,11 @@ while (!b.atendofstream)
|
|||||||
|
|
||||||
if (d.length > 0)
|
if (d.length > 0)
|
||||||
{
|
{
|
||||||
|
q.writeline(d)
|
||||||
f = d.indexOf(",") + 1
|
f = d.indexOf(",") + 1
|
||||||
c.push(d.substr(f, e - f))
|
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"))
|
a.createtextfile("build\\GAMES.SORTED").write(c.sort().toString().replace(/,/g, "\n"))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
a = new ActiveXObject("scripting.filesystemobject")
|
a = new ActiveXObject("scripting.filesystemobject")
|
||||||
b = a.opentextfile(WScript.Arguments(1))
|
b = a.opentextfile(WScript.Arguments(1))
|
||||||
c = b.readall()
|
c = b.readall().replace(/\r\n/g, "\n")
|
||||||
b.close()
|
b.close()
|
||||||
a.createtextfile(WScript.Arguments(1)).write(String(c + Array(512).join(String.fromCharCode(0))).substr(0, 512))
|
a.createtextfile(WScript.Arguments(1)).write(String(c + Array(512).join(String.fromCharCode(0))).substr(0, 512))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user