Data paths rework
Related to #499 (closed)
At the moment we have aimed at a "portable" way of managing paths. It means that all paths usually start at the path where the app is, and are relative to it. This allows us to bring Karaoke Mugen from one computer from the other easily.
Example, App is in C:\KaraokeMugen. All data is in C:\KaraokeMugen\app\data, or as stored in configuration app/data
. Moving or renaming the KM folder does not break anything, as paths are relative to the executable.
This causes an issue with #499 (closed) where in order to put KM into a .app bundle for macOS, we need a clear separation of data and executables.
The best way to do this is to store by default all user-data in the home directory.
-
C:\Users\Axel
on Windows -
/Users/Axel
on macOS -
/home/axel
on Linux
This means that we need to find a way to tell KM if we're in portable mode or not and assume where the root of our files is.
I'm gonna die.