13 lines
496 B
Python
13 lines
496 B
Python
"""Build a bootable Apple IIGS 5.25" .dsk (boots via slot 6 like an Apple II)."""
|
|
from __future__ import annotations
|
|
|
|
from ..apple import dsk
|
|
from .viewer.assemble import assemble_boot
|
|
|
|
|
|
def export_dsk(conv, output_path, source_path=None, display="forever",
|
|
seconds=0, video="ntsc"):
|
|
if not output_path.lower().endswith((".dsk", ".do")):
|
|
output_path += ".dsk"
|
|
boot = assemble_boot()
|
|
return dsk.write_dsk(output_path, dsk.build_boot_dsk(boot, bytes(conv.data)))
|