First public commit.

This commit is contained in:
The Dust Council 2026-07-03 19:35:35 -07:00
parent 2a48f52979
commit 4bac9d83ed
288 changed files with 18417 additions and 1076 deletions

13
lenser/iigs/exporter.py Normal file
View file

@ -0,0 +1,13 @@
"""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)))