Emulator Issues #12212
Handling of paths in config INIs should be improved to gracefully handle moving the userdir, where possible.
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?