save_dir
The folder for saving files, game scores, and screenshots.
By default, it's the work folder; it can be set to another folder
by changing this string, or by giving a -dir
command line option.
If this folder does not exist, it will be created when first saving a game score with game_save.
Type:
STRING*
Remarks:
- Saving files into the program folder requires administrator rights under Windows Vista and above, and is thus not recommended.
Use this string to set a different folder, f.i. in the ProgramData directory.
- Backslashes ("\") have to be given in C notation, i.e. as double backslashes (e.g. "C:\\mygame").
- The folder name given here may be overridden by the command line option -dir.
-
Only one folder is created, if necessary; a chain of multiple folders can not be created this way. The application must have the right to create folders in the desired path.
Example:
str_cpy(save_dir,"game_scores");
See also:
-dir, file_open,
game_save
► latest
version online