1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00

Refactor uses of path_append_extension

This commit is contained in:
Silent
2022-03-10 00:12:05 +01:00
parent 0f2cf23318
commit 3773fa4cb0
5 changed files with 52 additions and 53 deletions

View File

@@ -1530,3 +1530,16 @@ bool ContextOpenCommonFileDialog(utf8* outFilename, OpenRCT2::Ui::FileDialogDesc
return false;
}
}
u8string ContextOpenCommonFileDialog(OpenRCT2::Ui::FileDialogDesc& desc)
{
try
{
return GetContext()->GetUiContext()->ShowFileDialog(desc);
}
catch (const std::exception& ex)
{
log_error(ex.what());
return u8string{};
}
}