Expose SDL_OpenURL to mod code.
This commit is contained in:
committed by
Gustas Kažukauskas
parent
de952e6caf
commit
c7e67529b5
@@ -513,6 +513,18 @@ namespace OpenRA.Platforms.Default
|
||||
return Sdl2Input.SetClipboardText(text);
|
||||
}
|
||||
|
||||
public bool TryOpenUrl(string url)
|
||||
{
|
||||
try
|
||||
{
|
||||
return SDL.SDL_OpenURL(url) == 0;
|
||||
}
|
||||
catch
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
static void SetSDLAttributes(GLProfile profile)
|
||||
{
|
||||
SDL.SDL_GL_ResetAttributes();
|
||||
|
||||
Reference in New Issue
Block a user