Actions
Emulator Issues #12212
openHandling of paths in config INIs should be improved to gracefully handle moving the userdir, where possible.
Status:
Accepted
Priority:
Normal
Assignee:
-
% Done:
0%
Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:
Description
Right now we tend to store absolute paths everywhere, which tends to work nicely as long as you keep your userdir on a single computer/OS, but breaks when you move it to a different computer.
My ideal solution of this looks somewhat like this:
- Paths in the config are resolved relatively to the current userdir root. (instead of dolphin's working dir like now)
- Whenever a path is written to the config, we check if points inside the current userdir. If so we relativize it and store it relative to the userdir root. If not, we store it absolutely.
This allows moving the userdir around and it still works as long as all referenced files (raw SD card, raw Memory Cards, Wii NAND root) are in the userdir.
Sounds good? Anything I'm overlooking here?
Updated by Billiard26 8 months ago
- Related to Emulator Issues #11298: Custom User Styles are not Portable. added
Updated by Billiard26 8 months ago
- Related to Emulator Issues #13424: Dolphin in portable mode dumping textures into documents folder added
Actions