Created source subclass, improved RetroArch exec

Steam RetroArch still not working on my machine.
This commit is contained in:
GeoffreyCoulaud
2023-08-13 18:13:17 +02:00
parent 0599a61057
commit c2c998adcd
4 changed files with 63 additions and 17 deletions

View File

@@ -26,7 +26,11 @@ from typing import NamedTuple
from src import shared
from src.game import Game
from src.importer.sources.location import Location, LocationSubPath
from src.importer.sources.source import Source, SourceIterationResult, SourceIterable
from src.importer.sources.source import (
ExecutableFormatSource,
SourceIterationResult,
SourceIterable,
)
class LegendarySourceIterable(SourceIterable):
@@ -93,7 +97,7 @@ class LegendaryLocations(NamedTuple):
config: Location
class LegendarySource(Source):
class LegendarySource(ExecutableFormatSource):
source_id = "legendary"
name = _("Legendary")
executable_format = "legendary launch {app_name}"