mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Upgrade platform_sanitise_filename()
This commit is contained in:
@@ -139,7 +139,7 @@ static std::optional<std::string> screenshot_get_next_path()
|
||||
|
||||
// Generate a path with a `tries` number
|
||||
auto pathComposer = [&screenshotDirectory, &name](int tries) {
|
||||
auto composedFilename = platform_sanitise_filename(
|
||||
auto composedFilename = Platform::SanitiseFilename(
|
||||
name + ((tries > 0) ? " ("s + std::to_string(tries) + ")" : ""s) + ".png");
|
||||
return screenshotDirectory + PATH_SEPARATOR + composedFilename;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user