mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
use user path for default scenario save location
This commit is contained in:
@@ -220,21 +220,12 @@ rct_window *window_loadsave_open(int type, char *defaultName)
|
||||
window_loadsave_populate_list(w, includeNewItem, path, ".sc6");
|
||||
break;
|
||||
case LOADSAVETYPE_SCENARIO:
|
||||
/*
|
||||
Uncomment when user scenarios are separated
|
||||
|
||||
platform_get_user_directory(path, "scenario");
|
||||
if (!platform_ensure_directory_exists(path)) {
|
||||
log_error("Unable to create scenarios directory.");
|
||||
window_close(w);
|
||||
return NULL;
|
||||
log_error("Unable to create scenarios directory.");
|
||||
window_close(w);
|
||||
return NULL;
|
||||
}
|
||||
*/
|
||||
|
||||
safe_strncpy(path, RCT2_ADDRESS(RCT2_ADDRESS_SCENARIOS_PATH, char), MAX_PATH);
|
||||
ch = strchr(path, '*');
|
||||
if (ch != NULL)
|
||||
*ch = 0;
|
||||
|
||||
window_loadsave_populate_list(w, includeNewItem, path, ".sc6");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user