eden-miror/src/core/hle/service/acc
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: https://git.eden-emu.dev/eden-emu/eden/pulls/2678
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
2025-10-07 01:32:09 +02:00
..
acc.cpp [core] fix msvc comp (#2567) 2025-09-24 21:50:18 +02:00
acc.h profile_manager: Implement firmware avatar selector (#205) 2025-06-26 18:39:28 +00:00
acc_aa.cpp general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
acc_aa.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
acc_su.cpp profile_manager: Implement firmware avatar selector (#205) 2025-06-26 18:39:28 +00:00
acc_su.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
acc_u0.cpp add missing service for acc:u0 for fc26 (#2548) 2025-09-21 20:50:10 +02:00
acc_u0.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
acc_u1.cpp everything related to the FW 20 has been deleted. 2025-05-11 20:18:26 -04:00
acc_u1.h general: Convert source file copyright comments over to SPDX 2022-04-23 05:55:32 -04:00
async_context.cpp service: move hle_ipc from kernel 2023-03-01 10:39:49 -05:00
async_context.h service: move hle_ipc from kernel 2023-03-01 10:39:49 -05:00
errors.h hle: rename legacy errors to Results 2023-03-06 20:58:42 -05:00
profile_manager.cpp [desktop] fix save data location, orphaned profiles finder (#2678) 2025-10-07 01:32:09 +02:00
profile_manager.h [desktop] fix save data location, orphaned profiles finder (#2678) 2025-10-07 01:32:09 +02:00