1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Add OpenURL method, with implementation for Linux and Windows

This commit is contained in:
Michał Janiszewski
2020-07-26 21:57:56 +02:00
parent 8217acd86f
commit 352870b503
8 changed files with 31 additions and 0 deletions

View File

@@ -119,6 +119,12 @@ namespace OpenRCT2::Ui
Execute(cmd);
}
void OpenURL(const std::string& url) override
{
std::string cmd = String::Format("xdg-open %s", url.c_str());
Execute(cmd);
}
std::string ShowFileDialog(SDL_Window* window, const FileDialogDesc& desc) override
{
std::string result;