First public commit.
This commit is contained in:
parent
2a48f52979
commit
4bac9d83ed
288 changed files with 18417 additions and 1076 deletions
12
lenser/a2600/exporter.py
Normal file
12
lenser/a2600/exporter.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
"""Build an Atari 2600 cartridge (.a26) from a conversion."""
|
||||
from __future__ import annotations
|
||||
from .viewer.assemble import build_cart
|
||||
|
||||
|
||||
def export_a26(conv, output_path, source_path=None, display="forever", seconds=0):
|
||||
if not output_path.lower().endswith((".a26", ".bin")):
|
||||
output_path += ".a26"
|
||||
rom = build_cart(conv.data, display=display, seconds=seconds)
|
||||
with open(output_path, "wb") as f:
|
||||
f.write(rom)
|
||||
return output_path
|
||||
Loading…
Add table
Add a link
Reference in a new issue