mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 23:33:04 +01:00
Use C++ filesystem for more file/path functions
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "../actions/SetCheatAction.h"
|
||||
#include "../audio/audio.h"
|
||||
#include "../core/Console.hpp"
|
||||
#include "../core/File.h"
|
||||
#include "../core/Imaging.h"
|
||||
#include "../drawing/Drawing.h"
|
||||
#include "../drawing/X8DrawingEngine.h"
|
||||
@@ -147,7 +148,7 @@ static std::optional<std::string> screenshot_get_next_path()
|
||||
for (int tries = 0; tries < 100; tries++)
|
||||
{
|
||||
auto path = pathComposer(tries);
|
||||
if (!Platform::FileExists(path))
|
||||
if (!File::Exists(path))
|
||||
{
|
||||
return path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user