1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 08:14:38 +01:00

Fix #11407: Setting an RCT1 path needs better error messages (#11418)

This commit is contained in:
Michael Steenbeek
2020-04-25 15:36:44 +02:00
committed by GitHub
parent b417da7905
commit 0ecc64f781
12 changed files with 145 additions and 97 deletions

View File

@@ -111,19 +111,6 @@ bool platform_original_game_data_exists(const utf8* path)
return platform_file_exists(checkPath);
}
bool platform_original_rct1_data_exists(const utf8* path)
{
char checkPath[MAX_PATH];
char checkPath2[MAX_PATH];
safe_strcpy(checkPath, path, MAX_PATH);
safe_strcpy(checkPath2, path, MAX_PATH);
safe_strcat_path(checkPath, "Data", MAX_PATH);
safe_strcat_path(checkPath2, "Data", MAX_PATH);
safe_strcat_path(checkPath, "csg1.dat", MAX_PATH);
safe_strcat_path(checkPath2, "csg1.1", MAX_PATH);
return platform_file_exists(checkPath) || platform_file_exists(checkPath2);
}
bool platform_ensure_directory_exists(const utf8* path)
{
if (platform_directory_exists(path))