mirror of
https://github.com/Kapendev/parin.git
synced 2025-04-26 13:09:56 +03:00
Merge pull request #4 from Cyrodwd/main
Not a bad idea. A lot of games do have an X or YouTube button sometimes.
This commit is contained in:
commit
000baadb9a
1 changed files with 6 additions and 0 deletions
|
@ -1409,6 +1409,12 @@ void freeResources(Sz tag = 0) {
|
|||
engineState.resources.free(tag);
|
||||
}
|
||||
|
||||
/// Opens a URL in the default web browser (if available).
|
||||
@trusted
|
||||
void openURL(IStr url = "https://example.com/") {
|
||||
rl.OpenURL(url.toCStr().getOr());
|
||||
}
|
||||
|
||||
/// Opens a window with the specified size and title.
|
||||
/// You should avoid calling this function manually.
|
||||
@trusted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue