1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

Upgrade platform_original_game_data_exists()

This commit is contained in:
Gymnasiast
2022-01-05 14:17:19 +01:00
parent ff909cc286
commit 77e5defeca
7 changed files with 15 additions and 25 deletions

View File

@@ -66,15 +66,6 @@ bool platform_directory_exists(const utf8* path)
return dwAttrib != INVALID_FILE_ATTRIBUTES && (dwAttrib & FILE_ATTRIBUTE_DIRECTORY);
}
bool platform_original_game_data_exists(const utf8* path)
{
utf8 checkPath[MAX_PATH];
safe_strcpy(checkPath, path, MAX_PATH);
safe_strcat_path(checkPath, "Data", MAX_PATH);
safe_strcat_path(checkPath, "g1.dat", MAX_PATH);
return Platform::FileExists(checkPath);
}
bool platform_ensure_directory_exists(const utf8* path)
{
if (platform_directory_exists(path))