Working on floppy generation.

This commit is contained in:
Martin Haye 2017-01-11 15:20:22 -08:00
parent d0ca62eb53
commit 2404025654
2 changed files with 16 additions and 0 deletions

View File

@ -2626,6 +2626,15 @@ end
// Now put the files into the image
String[] args = ["-put", "game.2mg", "/", "build/root"]
new a2copy.A2Copy().main(args)
// Floppy work.
dst = new File("game1.dsk")
Files.copy(new GZIPInputStream(new FileInputStream(jitCopy(new File("build/data/disks/base_140k.dsk.gz")))), dst.toPath())
// Now put the files into the image
new File("build/root/game.part.2.bin").delete()
args = ["-put", "game1.dsk", "/", "build/root"]
new a2copy.A2Copy().main(args)
}
static void packWorld(String xmlPath, Object watcher)
@ -2668,6 +2677,13 @@ end
gameFile.delete()
}
// Also remove existing floppy disks for this game.
for (int i=1; i<=9; i++) {
def diskFile = new File(String.format("game%d.dsk", i))
if (diskFile.exists())
diskFile.delete()
}
// Create PLASMA headers
inst = new A2PackPartitions()
inst.buildDir = buildDir