From be4f440483dba90aff55ce6b2fadb15561ac3e4e 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 melonds data root main.cpp:182-211 picks the portable or Qt config folder. dsi_sd_card.bin reads as dsisd.bin there, the DSi.SD.ImagePath default (Config.cpp:120). --- emulators/melonds.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/emulators/melonds.yml b/emulators/melonds.yml index 858af261..579beed1 100644 --- a/emulators/melonds.yml +++ b/emulators/melonds.yml @@ -10,6 +10,19 @@ upstream_commit: "7d8dea42e221b13521270c423b61add41a741b97" core_version: "Git" display_name: "Nintendo - DS (melonDS)" systems: [nintendo-ds, nintendo-dsi] +data_root: + windows: + path: "" + source_ref: "upstream src/frontend/qt_sdl/main.cpp:182-184, 196-205, upstream src/frontend/qt_sdl/CMakeLists.txt:197-202" + note: "portable beside melonDS.exe when that folder exists. A build with the PORTABLE option off uses the Qt config location" + macos: + path: "~/Library/Preferences/melonDS" + source_ref: "upstream src/frontend/qt_sdl/main.cpp:182-200, 206-211" + note: "portable beside melonDS.app when that folder exists" + linux: + path: "$XDG_CONFIG_HOME/melonDS, else ~/.config/melonDS" + source_ref: "upstream src/frontend/qt_sdl/main.cpp:182-184, 196-200, 206-211" + note: "portable beside the executable when that folder exists" notes: | FreeBIOS fallback for DS mode (NTR), while DSi mode requires all native files. @@ -91,8 +104,9 @@ files: note: "Any regional dump works. Nocash footer required (DSi eMMC CID/CPU at EOF-0x40 or 0xFF800). AES keys derived from ARM7i BIOS offset 0x8308." - name: dsi_sd_card.bin + standalone_path: "dsisd.bin" system: nintendo-dsi description: "DSi SD card image" required: false - source_ref: "source src/frontend/Util_ROM.cpp:237-243, source src/libretro/libretro.cpp:837, 553" + source_ref: "source src/frontend/Util_ROM.cpp:237-243, source src/libretro/libretro.cpp:837, 553, upstream src/frontend/qt_sdl/Config.cpp:120, upstream src/FATStorage.cpp:1024-1025" note: "Created if missing, requires melonds_dsi_sdcard core option enabled"