First post, by Kahenraz
- Rank
- l33t
I have a game folder which I've installed to that mounts to drive C:
/usr/share/games/<game>/drive_c
The "/usr/share/games/<game>/" folder is the working directory when the game starts up. So, in the "[autoexec]" section of the config file, I mount drive C like this this:
mount c "drive_c/"
The problem is that the game needs a folder to write save game data:
C:\<game>\SAVE
Files stored under /usr/share/ are not writable by normal users. I considered creating a symbolic link to a path in /var but I think that this would be better suited to "~/.local/games/<game>/save" since save games shouldn't be shared between all users.
I looked into the various commands available but I can't seem to find a way to mount a folder to anything other than a drive letter. Is there a way in DOSBox to do the opposite of SUBST and map a local folder to a host path?
For example, I would add this to the [autoexec] section:
RSUBST C:\<game>\SAVE "~/.local/games/<game>/save"