eden/docs
crueter badd913bee
[desktop] fix save data location, orphaned profiles finder (#2678)
Previously, if the user had their NAND in a nonstandard location,
profiles.dat would be read from the standard Eden path and thus return
effectively garbage data. What this would result in is:

- The Qt profile manager would be completely nonfunctional
- "Open Save Data Location" would put you into the completely wrong
  place
- Games would read from incorrect locations for their saves

To solve this, I made it so that profiles.dat is re-read *after*
QtConfig initializes. It's not the perfect solution, but it works.

Additionally, this adds an orphaned profiles finder:
- walks through the save folders in nand/user/save/000.../
- for each subdirectory, checks to see if profiles.dat contains a
  corresponding UUID
- If not, the profile is "orphaned". It may contain legit save data, so
  let the user decide how to handle it (famous last words)
- Empty profiles are just removed. If they really matter, they're
  instantly recreated anyways.

The orphaned profiles check runs right *after* the decryption keys
check, but before the game list ever gets populated

Signed-off-by: crueter <crueter@eden-emu.dev>

Reviewed-on: #2678
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
2025-10-07 01:32:09 +02:00
..
build [docs] refactor: full rewrite, generalization + dedup (#488) 2025-09-18 02:37:02 +02:00
img [dist] shrink png asset size with optipng, scripts to generate assets (#2573) 2025-09-26 03:53:54 +02:00
scripts [docs] refactor: full rewrite, generalization + dedup (#488) 2025-09-18 02:37:02 +02:00
user [desktop] fix save data location, orphaned profiles finder (#2678) 2025-10-07 01:32:09 +02:00
Build.md [docs] refactor: full rewrite, generalization + dedup (#488) 2025-09-18 02:37:02 +02:00
Caveats.md [docs] refactor: full rewrite, generalization + dedup (#488) 2025-09-18 02:37:02 +02:00
CODEOWNERS [docs] fixup codeowners (#2529) 2025-09-19 18:20:51 +02:00
CPMUtil.md [tools, cmake] refactor: update/hash check scripts, use tags for some more deps, proper CPMUtil separation (#2666) 2025-10-05 03:04:53 +02:00
Deps.md [tools, cmake] refactor: update/hash check scripts, use tags for some more deps, proper CPMUtil separation (#2666) 2025-10-05 03:04:53 +02:00
Development.md [dist, docs] Clearer wording for settings, guidelines for new settings (#2570) 2025-09-29 19:41:01 +02:00
Options.md [fixup] fix bad variable names (#2642) 2025-10-01 16:36:07 +02:00
README.md [docs] initial user handbook draft (#2629) 2025-10-05 20:44:48 +02:00
SIGNUP.md [docs] initial user handbook draft (#2629) 2025-10-05 20:44:48 +02:00
User.md [docs] initial user handbook draft (#2629) 2025-10-05 20:44:48 +02:00

Eden Build Documentation

This contains documentation created by developers. This contains build instructions, guidelines, instructions/layouts for cool stuff we made, and more.