summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--unix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/unix.c b/unix.c
index 06aa7b9da..829d53bbd 100644
--- a/unix.c
+++ b/unix.c
@@ -485,7 +485,8 @@ void DeterminePaths()
_config_file = str_fmt("%sopenttd.cfg", _path.personal_dir);
- // make (auto)save and scenario folder
+ // create necessary folders
+ mkdir(_path.personal_dir, 0755);
mkdir(_path.save_dir, 0755);
mkdir(_path.autosave_dir, 0755);
mkdir(_path.scenario_dir, 0755);