mirror of
https://github.com/a2-4am/4cade.git
synced 2024-12-22 09:30:04 +00:00
strip CR from credits and helptext
This commit is contained in:
parent
50a494fda4
commit
4b290df515
@ -8,7 +8,7 @@ if (d.substr(0, 2) == '*.')
|
|||||||
}
|
}
|
||||||
for (b = new Enumerator(a.GetFolder(c).files); !b.atEnd(); b.moveNext())
|
for (b = new Enumerator(a.GetFolder(c).files); !b.atEnd(); b.moveNext())
|
||||||
{
|
{
|
||||||
if ((d == '*') || (d == a.getextensionname(b.item().name)))
|
if ((d == '*') || (d == b.item().name) || (d == a.getextensionname(b.item().name)))
|
||||||
{
|
{
|
||||||
e = a.opentextfile(c + b.item().name).readall()
|
e = a.opentextfile(c + b.item().name).readall()
|
||||||
e = e.replace(/\r\n/g, "\n")
|
e = e.replace(/\r\n/g, "\n")
|
||||||
|
@ -8,7 +8,7 @@ if (d.substr(0, 2) == '*.')
|
|||||||
}
|
}
|
||||||
for (b = new Enumerator(a.GetFolder(c).files); !b.atEnd(); b.moveNext())
|
for (b = new Enumerator(a.GetFolder(c).files); !b.atEnd(); b.moveNext())
|
||||||
{
|
{
|
||||||
if ((d == '*') || (d == a.getextensionname(b.item().name)))
|
if ((d == '*') || (d == b.item().name) || (d == a.getextensionname(b.item().name)))
|
||||||
{
|
{
|
||||||
e = WScript.Arguments(1) + "\\" + b.item().Name
|
e = WScript.Arguments(1) + "\\" + b.item().Name
|
||||||
if (!a.fileexists(e) || (a.getfile(e).datelastmodified < b.item().datelastmodified))
|
if (!a.fileexists(e) || (a.getfile(e).datelastmodified < b.item().datelastmodified))
|
||||||
|
@ -52,8 +52,12 @@ cscript /nologo bin\padto.js 512 build\PREFS.CONF
|
|||||||
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\HELP" >>build\log
|
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\HELP" >>build\log
|
||||||
for %%q in (res\*.CONF) do if "%%q" neq "res\PREFS.CONF" %CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "%%q" >>build\log
|
for %%q in (res\*.CONF) do if "%%q" neq "res\PREFS.CONF" %CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "%%q" >>build\log
|
||||||
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "build\PREFS.CONF" >>build\log
|
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "build\PREFS.CONF" >>build\log
|
||||||
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\CREDITS" >>build\log
|
cscript /nologo bin\rsync.js "res\CREDITS" "build\" >>build\log
|
||||||
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\HELPTEXT" >>build\log
|
cscript /nologo bin\dumpcr.js "build\CREDITS"
|
||||||
|
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "build\CREDITS" >>build\log
|
||||||
|
cscript /nologo bin\rsync.js "res\HELPTEXT" "build\" >>build\log
|
||||||
|
cscript /nologo bin\dumpcr.js "build\HELPTEXT"
|
||||||
|
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "build\HELPTEXT" >>build\log
|
||||||
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\DECRUNCH" >>build\log
|
%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\DECRUNCH" >>build\log
|
||||||
%CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/TITLE.HGR" "res\TITLE.HGR" >>build\log
|
%CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/TITLE.HGR" "res\TITLE.HGR" >>build\log
|
||||||
%CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/TITLE.DHGR" "res\TITLE.DHGR" >>build\log
|
%CADIUS% ADDFOLDER "build\%DISK%" "/%VOLUME%/TITLE.DHGR" "res\TITLE.DHGR" >>build\log
|
||||||
|
Loading…
Reference in New Issue
Block a user