From bc61bf3a10d715630ee56e4f3adc0a4798cb1f4e Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Sat, 24 Oct 2026 01:13:44 +0200 Subject: [PATCH] feat: add stella data root OSystem per system builds the base directory; -baseinappdir and -basedir override it. --- emulators/stella.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/emulators/stella.yml b/emulators/stella.yml index b00b3d69..402fcfc7 100644 --- a/emulators/stella.yml +++ b/emulators/stella.yml @@ -13,6 +13,20 @@ cores: systems: - atari-2600 +data_root: + windows: + path: "%APPDATA%/Stella" + source_ref: "src/os/windows/OSystemWINDOWS.cxx:28-36, 42-57, src/os/windows/HomeFinder.hxx:46-51" + note: "The -baseinappdir option makes the folder of the executable the root, -basedir a chosen folder" + macos: + path: "~/Library/Application Support/Stella" + source_ref: "src/os/macos/OSystemMACOS.cxx:30-33, 38-59, src/os/macos/MacOSUtils.mm:26-38" + note: "The -baseinappdir option makes the folder of the executable the root, -basedir a chosen folder" + linux: + path: "$XDG_CONFIG_HOME/stella, else ~/.config/stella" + source_ref: "src/os/unix/OSystemUNIX.cxx:78-79, 83-96, src/os/unix/XDGPaths.hxx:36-38, 49-58" + note: "The -baseinappdir option makes the folder of the executable the root, -basedir a chosen folder" + notes: | The libretro core is built from stella-emu/stella, the tree of the standalone emulator, with its wrapper in src/os/libretro. The binary