1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 23:33:04 +01:00

More MAX_PATH removals (#20113)

* Refactor FileScanner to lift a MAX_PATH limit

* Replace Platform::EnsureDirectoryExists with Path::CreateDirectory

* Remove MAX_PATH from Platform.Posix.cpp
This commit is contained in:
Silent
2023-05-09 21:08:46 +02:00
committed by GitHub
parent 58baa85a27
commit c4b70358c8
20 changed files with 79 additions and 148 deletions

View File

@@ -134,7 +134,7 @@ static std::string ScreenshotGetFormattedDateTime()
static std::optional<std::string> ScreenshotGetNextPath()
{
auto screenshotDirectory = ScreenshotGetDirectory();
if (!Platform::EnsureDirectoryExists(screenshotDirectory.c_str()))
if (!Path::CreateDirectory(screenshotDirectory))
{
LOG_ERROR("Unable to save screenshots in OpenRCT2 screenshot directory.");
return std::nullopt;