Adds way to open URIs in the user's browser.

This commit is contained in:
Pieter-Jan Briers
2019-07-29 23:00:14 +02:00
parent b26a370504
commit 2d30eb0321
2 changed files with 120 additions and 0 deletions

View File

@@ -88,6 +88,7 @@ namespace Robust.Client
IoCManager.Register<IInputManager, InputManager>();
IoCManager.Register<IFileDialogManager, DummyFileDialogManager>();
IoCManager.Register<IFileDialogManagerInternal, DummyFileDialogManager>();
IoCManager.Register<IUriOpener, UriOpenerDummy>();
break;
case GameController.DisplayMode.Clyde:
IoCManager.Register<IClyde, Clyde>();
@@ -96,6 +97,13 @@ namespace Robust.Client
IoCManager.Register<IInputManager, ClydeInputManager>();
IoCManager.Register<IFileDialogManager, FileDialogManager>();
IoCManager.Register<IFileDialogManagerInternal, FileDialogManager>();
#if LINUX
IoCManager.Register<IUriOpener, UriOpenerLinux>();
#elif MACOS
IoCManager.Register<IUriOpener, UriOpenerMacOS>();
#elif WINDOWS
IoCManager.Register<IUriOpener, UriOpenerWindows>();
#endif
break;
default:
throw new ArgumentOutOfRangeException();