13 lines
451 B
Python
13 lines
451 B
Python
"""Build a bootable Amiga .adf floppy from a conversion."""
|
|
from __future__ import annotations
|
|
|
|
from . import viewer
|
|
|
|
|
|
def export_adf(conv, output_path, source_path=None, display="forever",
|
|
seconds=0, video="ntsc"):
|
|
if not output_path.lower().endswith(".adf"):
|
|
output_path += ".adf"
|
|
d = conv.data
|
|
adf = viewer.build_adf(d["planes"], d["colors"], d["nplanes"], d["ham"])
|
|
return viewer.write_adf(adf, output_path)
|