Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
lutris / usr / lib / python3 / dist-packages / lutris / runners / stella.py
Size: Mime:
# Standard Library
from gettext import gettext as _

# Lutris Modules
from lutris.runners.runner import Runner
from lutris.util import system


class stella(Runner):
    description = _("Atari 2600 emulator")
    human_name = _("Stella")
    platforms = [_("Atari 2600")]
    runnable_alone = True
    runner_executable = "stella/bin/stella"
    game_options = [
        {
            "option":
            "main_file",
            "type":
            "file",
            "label":
            _("ROM file"),
            "help": _(
                "The game data, commonly called a ROM image.\n"
                "Supported formats: A26/BIN/ROM. GZIP and ZIP compressed "
                "ROMs are supported."
            ),
        }
    ]
    runner_options = []

    def play(self):
        cart = self.game_config.get("main_file") or ""
        if not system.path_exists(cart):
            return {"error": "FILE_NOT_FOUND", "file": cart}
        return {"command": [self.get_executable(), cart]}