1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Part of #11437: Move PlatformFileExists to Platform2.h (#12077)

This commit is contained in:
frutiemax
2020-07-02 11:03:31 -04:00
committed by GitHub
parent cb4eba701f
commit 26ae2dbf04
16 changed files with 34 additions and 46 deletions

View File

@@ -21,7 +21,6 @@
#include "../drawing/X8DrawingEngine.h"
#include "../localisation/Localisation.h"
#include "../platform/Platform2.h"
#include "../platform/platform.h"
#include "../util/Util.h"
#include "../world/Climate.h"
#include "../world/Map.h"
@@ -146,7 +145,7 @@ static std::optional<std::string> screenshot_get_next_path()
for (int tries = 0; tries < 100; tries++)
{
auto path = pathComposer(tries);
if (!platform_file_exists(path.c_str()))
if (!Platform::FileExists(path))
{
return path;
}