linux-mod-manager/lmm/runners/base.py

17 lines
453 B
Python
Raw Normal View History

2023-12-02 16:45:16 +00:00
import abc
from pathlib import Path
from typing import Any, Optional
from lmm.cmd import run_cmd_nonblocking
from lmm.games.game import Game, ProtonGame
from lmm.runners.runner import Runner
from lmm.runners.steam import SteamFlatpakAppIdRunner
2023-12-02 16:46:48 +00:00
2023-12-02 16:45:16 +00:00
def runner_from_config(data: dict[str, Any]) -> Optional[Runner]:
match data["type"]:
case "steam.flatpak":
return SteamFlatpakAppIdRunner()
case _:
return None