4cade/bin/builddisplaynames.js

29 lines
505 B
JavaScript
Raw Normal View History

2021-10-24 02:17:36 +00:00
a = new ActiveXObject("scripting.filesystemobject")
b = a.opentextfile("build\\GAMES.CONF")
c = a.createtextfile("build\\DISPLAY.CONF")
while (!b.atendofstream)
{
d = b.readline()
2021-10-25 00:09:29 +00:00
if (d.indexOf("[eof]") >= 0)
2021-10-24 02:17:36 +00:00
{
2021-10-25 00:09:29 +00:00
break
}
2021-10-24 02:17:36 +00:00
2021-10-25 00:09:29 +00:00
if (d.indexOf("=") == -1)
{
e = d.indexOf(",") + 1
f = d.substr(e).split(".")
2021-10-24 02:17:36 +00:00
2021-10-25 00:09:29 +00:00
for (g = 0; g < f.length; g++)
{
f[g] = f[g].charAt(0) + f[g].substr(1).toLowerCase()
2021-10-24 02:17:36 +00:00
}
2021-10-25 00:09:29 +00:00
d += "=" + f.join(" ").replace(" Ii", " II")
2021-10-24 02:17:36 +00:00
}
2021-10-25 00:09:29 +00:00
c.writeline(d)
2021-10-24 02:17:36 +00:00
}