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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user