unix.c
changeset 704 e843dd369938
parent 569 1e1755ba1572
child 770 c2eacca29601
equal deleted inserted replaced
703:3f64a428fcbc 704:e843dd369938
   498 	_path.autosave_dir = str_fmt("%s/autosave", _path.save_dir);
   498 	_path.autosave_dir = str_fmt("%s/autosave", _path.save_dir);
   499 	_path.scenario_dir = str_fmt("%sscenario", _path.personal_dir);
   499 	_path.scenario_dir = str_fmt("%sscenario", _path.personal_dir);
   500 	_path.gm_dir = str_fmt("%sgm/", _path.game_data_dir);
   500 	_path.gm_dir = str_fmt("%sgm/", _path.game_data_dir);
   501 	_path.data_dir = str_fmt("%sdata/", _path.game_data_dir);
   501 	_path.data_dir = str_fmt("%sdata/", _path.game_data_dir);
   502 	_config_file = str_fmt("%sopenttd.cfg", _path.personal_dir);
   502 	_config_file = str_fmt("%sopenttd.cfg", _path.personal_dir);
       
   503 	_log_file = str_fmt("%sopenttd.log", _path.personal_dir);
   503 	
   504 	
   504 #if defined CUSTOM_LANG_DIR
   505 #if defined CUSTOM_LANG_DIR
   505 	// sets the search path for lng files to the custom one
   506 	// sets the search path for lng files to the custom one
   506 	_path.lang_dir = malloc( MAX_PATH );
   507 	_path.lang_dir = malloc( MAX_PATH );
   507 	ttd_strlcpy( _path.lang_dir, CUSTOM_LANG_DIR, MAX_PATH);
   508 	ttd_strlcpy( _path.lang_dir, CUSTOM_LANG_DIR, MAX_PATH);