1
0
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:
Gymnasiast
2022-01-05 15:00:16 +01:00
parent de867827a1
commit e4496c41bd
6 changed files with 29 additions and 42 deletions

View File

@@ -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;
};