added functions to open URLs (not used yet)
authorHolger Schemel <info@artsoft.org>
Sat, 9 Apr 2022 09:05:52 +0000 (11:05 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 9 Apr 2022 09:05:52 +0000 (11:05 +0200)
src/tools.c
src/tools.h

index bde987901f8b4181c824ae673faa4cde114aea90..67c870083e2d4ee6456d0900a6e36c432a56a474 100644 (file)
@@ -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
index dc5da845c126f16f57c3cd97347e050a23adc834..3413308c8926cfa395c5ea028f6ee191d49e36a0 100644 (file)
@@ -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