From 37f838e4a2005a48f0887c74da3d2306fd81188c Mon Sep 17 00:00:00 2001 From: GeoffreyCoulaud Date: Thu, 17 Aug 2023 14:13:55 +0200 Subject: [PATCH] Added back locations --- src/importer/sources/retroarch_source.py | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/importer/sources/retroarch_source.py b/src/importer/sources/retroarch_source.py index 796c7ee..7e6beea 100644 --- a/src/importer/sources/retroarch_source.py +++ b/src/importer/sources/retroarch_source.py @@ -151,6 +151,31 @@ class RetroarchSource(Source): def __init__(self) -> None: super().__init__() + self.locations = RetroarchLocations( + Location( + schema_key="retroarch-location", + candidates=[ + shared.flatpak_dir + / "org.libretro.RetroArch" + / "config" + / "retroarch", + shared.config_dir / "retroarch", + shared.home / ".config" / "retroarch", + # TODO: Windows support, waiting for executable path setting improvement + # Path("C:\\RetroArch-Win64"), + # Path("C:\\RetroArch-Win32"), + # TODO: UWP support (URL handler - https://github.com/libretro/RetroArch/pull/13563) + # shared.local_appdata_dir + # / "Packages" + # / "1e4cf179-f3c2-404f-b9f3-cb2070a5aad8_8ngdn9a6dx1ma" + # / "LocalState", + ], + paths={ + "retroarch.cfg": LocationSubPath("retroarch.cfg"), + }, + invalid_subtitle=Location.CONFIG_INVALID_SUBTITLE, + ) + ) # TODO enable when we get the Steam RetroArch games work # self.add_steam_location_candidate()