# SPDX-License-Identifier: GPL-3.0-or-later """mesen2-runner: Mesen2 run headless as a closed-box referee, one runner with per-console adapters. The library is a MesenCore.so built from the pinned Mesen2 commit, or from the pinned MesenCE commit (``build.sh --core mesence``; ``run.py --core mesence``). Everything here drives it through its exported C functions with ``ctypes`` and Mesen2's Lua API; the adapters (``nes``, ``snes``, ``pce``, ``cx4``) hold each console's settings and outputs, and ``compat`` keeps the entry points the emulator repositories used before the regrouping (2026-11-23). Every output is OBSERVED (Mesen2 at the pin), never a hardware fact. Parts of this package came from code first published under MIT by alewman in the family's emulator repositories (each module says which); that permission is kept for those parts (``notices/MIT-emulator-family.txt``). The package as a whole is GPL-3.0-or-later. """ TOOL = "mesen2-runner" VERSION = "0.4.0" #: The two pinned upstreams (``--core``): Mesen2, the archived original, and MesenCE, its live #: continuation (since 0.4.0, 2026-11-25). One runner drives either library. CORES = { "mesen2": { "name": "Mesen2", "url": "https://github.com/SourMesen/Mesen2", "commit": "b9fa69ddc6d0a331fb103fdb5eef6904305703c2", "licence": "GPL-3.0", }, "mesence": { "name": "MesenCE", "url": "https://github.com/nesdev-org/MesenCE", "commit": "4b8a196e299b3de297b204fd1208d2981562c89b", "licence": "GPL-3.0", }, } UPSTREAM = CORES["mesen2"]