First public commit.
This commit is contained in:
parent
2a48f52979
commit
4bac9d83ed
288 changed files with 18417 additions and 1076 deletions
11
lenser/coco/exporter.py
Normal file
11
lenser/coco/exporter.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
"""Build a TRS-80 CoCo 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):
|
||||
if not output_path.lower().endswith((".ccc", ".rom")):
|
||||
output_path += ".ccc"
|
||||
vdg = conv.meta.get("vdg", 0xF8) if conv.meta else 0xF8
|
||||
rom = cartridge.build_rom(conv.data, vdg=vdg, display=display, seconds=seconds)
|
||||
return cartridge.write_ccc(rom, output_path)
|
||||
Loading…
Add table
Add a link
Reference in a new issue