From 5ac3d2808fba37e0978856f03ccbfd39e443e342 Mon Sep 17 00:00:00 2001 From: Peter Ferrie Date: Thu, 26 Sep 2019 10:52:53 -0700 Subject: [PATCH] sync --- bin/do2po.js | 39 --------------------------------------- winmake.bat | 1 + 2 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 bin/do2po.js diff --git a/bin/do2po.js b/bin/do2po.js deleted file mode 100644 index 846523ce5..000000000 --- a/bin/do2po.js +++ /dev/null @@ -1,39 +0,0 @@ -kMap = [0x00, - 0x0E, - 0x0D, - 0x0C, - 0x0B, - 0x0A, - 0x09, - 0x08, - 0x07, - 0x06, - 0x05, - 0x04, - 0x03, - 0x02, - 0x01, - 0x0F - ] - -a = new ActiveXObject("scripting.filesystemobject") -for (b = new Enumerator(a.GetFolder(WScript.Arguments(0)).files); !b.atEnd(); b.moveNext()) -{ - if (a.GetExtensionName(b.item()).toLowerCase() == "dsk") - { - fi = a.opentextfile(b.item()) - fo = a.createtextfile(WScript.Arguments(1)+"\\"+a.GetBaseName(b.item())+".po", 1) - for (track = 0; track < 0x23; ++track) - { - sectors = new Array(0x10) - for (dos_sector = 0; dos_sector < 0x10; ++dos_sector) - { - sectors[kMap[dos_sector]] = fi.read(256) - } - for (dos_sector = 0; dos_sector < 0x10; ++dos_sector) - { - fo.write(sectors[dos_sector]) - } - } - } -} diff --git a/winmake.bat b/winmake.bat index 0e477a7de..51e5ab066 100644 --- a/winmake.bat +++ b/winmake.bat @@ -48,6 +48,7 @@ call :asm cscript /nologo bin\padto.js 512 build\PREFS.CONF %CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\TITLE" >>build\log %CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\COVER" >>build\log +%CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\HELP" >>build\log %CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "build\PREFS.CONF" >>build\log %CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\GAMES.CONF" >>build\log %CADIUS% ADDFILE "build\%DISK%" "/%VOLUME%/" "res\ATTRACT.CONF" >>build\log