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