From bfcc2be75258769c503b2e3bf94a7a8a1089cdb5 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Fri, 23 Oct 2026 18:52:58 +0200 Subject: [PATCH] docs: add data_root to punes Qt's GenericConfigLocation is AppData/Local on Windows, so the notes now name %LOCALAPPDATA%/puNES (src/gui/qt.cpp:567-568). --- emulators/punes.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/emulators/punes.yml b/emulators/punes.yml index 566f1c83..583c0a59 100644 --- a/emulators/punes.yml +++ b/emulators/punes.yml @@ -14,6 +14,16 @@ systems: - nintendo-fds mode: standalone +data_root: + windows: + path: "%LOCALAPPDATA%/puNES" + source_ref: "src/gui/qt.cpp:561-568" + note: "Qt's GenericConfigLocation. --portable moves it to the application directory." + linux: + path: "$XDG_DATA_HOME/puNES" + source_ref: "src/gui/qt.cpp:561-570" + note: "~/.local/share/puNES when XDG_DATA_HOME is unset. --portable moves it to the application directory." + notes: | Qt emulator of the NES, the Famicom and the Family Computer Disk System, also playing NSF and NSFE music files. A cartridge boots with nothing @@ -30,7 +40,7 @@ notes: | (CMakeLists.txt:227-228). The data directory is the application directory under --portable, - %APPDATA%/puNES on Windows and ~/.local/share/puNES elsewhere + %LOCALAPPDATA%/puNES on Windows and ~/.local/share/puNES elsewhere (src/gui/qt.cpp:561-575), so the bios folder is ~/.local/share/puNES/bios. No length and no hash is ever compared. fds_load_bios computes a CRC32 of