1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 02:35:46 +01:00

Replace path_set_extension with Path::WithExtension()

This commit is contained in:
Gymnasiast
2022-02-26 17:33:12 +01:00
parent 49b414a40e
commit 376c79408a
5 changed files with 8 additions and 11 deletions

View File

@@ -1087,7 +1087,8 @@ static void WindowLoadsaveSelect(rct_window* w, const char* path)
{
SetAndSaveConfigPath(gConfigGeneral.last_save_track_directory, pathBuffer);
path_set_extension(pathBuffer, "td6", sizeof(pathBuffer));
const auto withExtension = Path::WithExtension(pathBuffer, "td6");
String::Set(pathBuffer, sizeof(pathBuffer), withExtension.c_str());
RCT2::T6Exporter t6Export{ _trackDesign };