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