Script to handle configuring savegame location
|Reported by:||SF/dbreakey||Owned by:||fingolfin|
This is a small script I use to automatically set the SCUMMVM_SAVEPATH environment variable and create the directory, if necessary.
This is a Bash shell script, designed to go into /etc/profile.d for those setups that support it; otherwise, it can be integrated into a standard shell profile script. Note, it should probably be set chmod 0755
Creating something similar for Windows should be pretty trivial, probably something like the following:
SET SCUMMVM_SAVEPATH=path IF NOT EXIST %SCUMMVM_SAVEPATH%\NUL MKDIR %SCUMMVM_SAVEPATH% > NUL
Since I don't have a Windows box to test it on, though ...
Ticket imported from: #1090890. Ticket imported from: patches/488.