mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 19:43:06 +01:00
If path to RCT1 is available, load "css50" from there
This commit is contained in:
committed by
Michael Steenbeek
parent
b1bd899fb8
commit
da1f618732
@@ -417,8 +417,13 @@ void rct2_update()
|
||||
const utf8 *get_file_path(sint32 pathId)
|
||||
{
|
||||
static utf8 path[MAX_PATH];
|
||||
safe_strcpy(path, gRCT2AddressAppPath, sizeof(path));
|
||||
safe_strcat_path(path, RCT2FilePaths[pathId], sizeof(path));
|
||||
if (pathId == PATH_ID_CSS50 && !str_is_null_or_empty(gConfigGeneral.rct1_path)) {
|
||||
safe_strcpy(path, gConfigGeneral.rct1_path, sizeof(path));
|
||||
safe_strcat_path(path, RCT2FilePaths[PATH_ID_CSS17], sizeof(path));
|
||||
} else {
|
||||
safe_strcpy(path, gRCT2AddressAppPath, sizeof(path));
|
||||
safe_strcat_path(path, RCT2FilePaths[pathId], sizeof(path));
|
||||
}
|
||||
return path;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user