13 lines
506 B
Python
13 lines
506 B
Python
"""Build a CoCo 3 cartridge (.ccc) from a conversion."""
|
|
from __future__ import annotations
|
|
|
|
from . import cartridge
|
|
|
|
|
|
def export_ccc(conv, output_path, source_path=None, display="forever",
|
|
seconds=0, video="ntsc"):
|
|
if not output_path.lower().endswith((".ccc", ".rom")):
|
|
output_path += ".ccc"
|
|
rom = cartridge.build_rom(bytes(conv.data), conv.meta["cres"],
|
|
conv.meta["inks"], conv.meta["border"])
|
|
return cartridge.write_ccc(rom, output_path)
|