From: Holger Schemel Date: Sat, 9 Apr 2022 09:05:52 +0000 (+0200) Subject: added functions to open URLs (not used yet) X-Git-Tag: 4.3.2.0~32 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=073fb8edb944e8547b3d0e4b102bb30b40671674;p=rocksndiamonds.git added functions to open URLs (not used yet) --- diff --git a/src/tools.c b/src/tools.c index bde98790..67c87008 100644 --- a/src/tools.c +++ b/src/tools.c @@ -9954,6 +9954,16 @@ void ChangeViewportPropertiesIfNeeded(void) } } +void OpenURL(char *url) +{ + SDL_OpenURL(url); +} + +void OpenURLFromHash(SetupFileHash *hash, int hash_key) +{ + OpenURL(getHashEntry(hash, int2str(hash_key, 0))); +} + // ============================================================================ // tests diff --git a/src/tools.h b/src/tools.h index dc5da845..3413308c 100644 --- a/src/tools.h +++ b/src/tools.h @@ -300,6 +300,9 @@ void ChangeViewportPropertiesIfNeeded(void); boolean CheckIfAllViewportsHaveChanged(void); boolean CheckFadeAll(void); +void OpenURL(char *); +void OpenURLFromHash(SetupFileHash *, int); + void TestGeneratingUUIDs(void); #endif // TOOLS_H