diff --git a/emulators/sudachi.yml b/emulators/sudachi.yml index 5caf7834f..63841d3c7 100644 --- a/emulators/sudachi.yml +++ b/emulators/sudachi.yml @@ -14,6 +14,10 @@ cores: - sudachi systems: [nintendo-switch] mode: standalone +standalone_directories: + - "$XDG_DATA_HOME/sudachi" + - "$HOME/.local/share/sudachi" + - "PORTABLE_DIR" data_root: windows: diff --git a/platforms/retrobat.yml b/platforms/retrobat.yml index 1a89d0f1c..eb948894d 100644 --- a/platforms/retrobat.yml +++ b/platforms/retrobat.yml @@ -4999,6 +4999,14 @@ launchers: passes_to: PORTABLE_DIR, the portable folder beside shadPS4.exe fails_when_missing: false source_ref: "emulatorLauncher/Generators/ShadPS4.Generator.cs:29, 158-160" +- emulator: sudachi + build: standalone + kind: passes_path + names: [] + search_dir: "/user" + passes_to: PORTABLE_DIR, the portable folder beside sudachi.exe + fails_when_missing: false + source_ref: "emulatorLauncher/Generators/Sudachi.Generator.cs:20, 29-30" - emulator: yuzu build: standalone kind: passes_path diff --git a/scripts/scraper/retrobat_launchers.py b/scripts/scraper/retrobat_launchers.py index 6a8f178f6..1e8cc3638 100644 --- a/scripts/scraper/retrobat_launchers.py +++ b/scripts/scraper/retrobat_launchers.py @@ -63,6 +63,7 @@ SOURCE_FILES = ( f"{GENERATORS}/ScummVm.Generator.cs", f"{GENERATORS}/ShadPS4.Generator.cs", f"{GENERATORS}/Snes9x.Generator.cs", + f"{GENERATORS}/Sudachi.Generator.cs", f"{GENERATORS}/Tsugaru.Generator.cs", f"{GENERATORS}/Uae.Generator.cs", f"{GENERATORS}/Xemu.Generator.cs", @@ -2992,6 +2993,7 @@ PORTABLE_USERS = ( ("Eden.Generator.cs", "eden", "eden.exe", "PORTABLE_DIR"), ("Ryujinx.Generator.cs", "ryujinx", "Ryujinx.exe", "DefaultPortableDir"), ("ShadPS4.Generator.cs", "shadps4", "shadPS4.exe", "PORTABLE_DIR"), + ("Sudachi.Generator.cs", "sudachi", "sudachi.exe", "PORTABLE_DIR"), ("Yuzu.Generator.cs", "yuzu", "yuzu.exe", "PORTABLE_DIR"), ) _EMULATOR_FOLDER = ( diff --git a/tests/test_launcher_paths.py b/tests/test_launcher_paths.py index e2b8a6866..d973dfe4c 100644 --- a/tests/test_launcher_paths.py +++ b/tests/test_launcher_paths.py @@ -197,6 +197,7 @@ class APortableUserFolder(unittest.TestCase): f"{rl.GENERATORS}/Eden.Generator.cs": source("e", yuzu_like("eden.exe")), f"{rl.GENERATORS}/Ryujinx.Generator.cs": source("r", self.RYUJINX), f"{rl.GENERATORS}/ShadPS4.Generator.cs": source("s", self.SHADPS4), + f"{rl.GENERATORS}/Sudachi.Generator.cs": source("u", yuzu_like("sudachi.exe")), f"{rl.GENERATORS}/Yuzu.Generator.cs": source("y", yuzu_like("yuzu.exe")), } @@ -208,6 +209,7 @@ class APortableUserFolder(unittest.TestCase): ("eden", '/user', "e:3, 7-8"), ("ryujinx", '/portable', "r:3-5"), ("shadps4", '/user', "s:3, 8-10"), + ("sudachi", '/user', "u:3, 7-8"), ("yuzu", '/user', "y:3, 7-8")], ) ryujinx = found[2]