580 _path.save_dir = str_fmt("%ssave", _path.personal_dir); |
580 _path.save_dir = str_fmt("%ssave", _path.personal_dir); |
581 _path.autosave_dir = str_fmt("%s\\autosave", _path.save_dir); |
581 _path.autosave_dir = str_fmt("%s\\autosave", _path.save_dir); |
582 _path.scenario_dir = str_fmt("%sscenario", _path.personal_dir); |
582 _path.scenario_dir = str_fmt("%sscenario", _path.personal_dir); |
583 _path.gm_dir = str_fmt("%sgm\\", _path.game_data_dir); |
583 _path.gm_dir = str_fmt("%sgm\\", _path.game_data_dir); |
584 _path.data_dir = str_fmt("%sdata\\", _path.game_data_dir); |
584 _path.data_dir = str_fmt("%sdata\\", _path.game_data_dir); |
585 _config_file = str_fmt("%sopenttd.cfg", _path.personal_dir); |
585 |
|
586 if (_config_file == NULL) |
|
587 _config_file = str_fmt("%sopenttd.cfg", _path.personal_dir); |
586 |
588 |
587 #if defined CUSTOM_LANG_DIR |
589 #if defined CUSTOM_LANG_DIR |
588 // sets the search path for lng files to the custom one |
590 // sets the search path for lng files to the custom one |
589 _path.lang_dir = malloc( MAX_PATH ); |
591 _path.lang_dir = malloc( MAX_PATH ); |
590 ttd_strlcpy( _path.lang_dir, CUSTOM_LANG_DIR, MAX_PATH); |
592 ttd_strlcpy( _path.lang_dir, CUSTOM_LANG_DIR, MAX_PATH); |