Project

General

Profile

Actions

Emulator Issues #12212

open

Handling of paths in config INIs should be improved to gracefully handle moving the userdir, where possible.

Added by AdmiralCurtiss over 3 years ago. Updated about 1 month ago.

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?


Related issues 2 (2 open0 closed)

Related to Emulator - Emulator Issues #11298: Custom User Styles are not Portable.New

Actions
Related to Emulator - Emulator Issues #13424: Dolphin in portable mode dumping textures into documents folderNew

Actions
Actions #1

Updated by Billiard26 about 1 month ago

  • Status changed from New to Accepted
Actions #2

Updated by Billiard26 about 1 month ago

Actions #3

Updated by Billiard26 about 1 month ago

Actions

Also available in: Atom PDF