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/sms/exporter.py Normal file
View file

@ -0,0 +1,13 @@
"""Build a Sega Master System .sms cartridge from a conversion."""
from __future__ import annotations
from . import viewer
def export_sms(conv, output_path, source_path=None, display="forever",
seconds=0, video="ntsc"):
if not output_path.lower().endswith((".sms", ".bin")):
output_path += ".sms"
d = conv.data
rom = viewer.build_rom(d["patterns"], d["nametable"], d["palette"])
return viewer.write_sms(rom, output_path)