projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4d6d8a
)
added functions to open URLs (not used yet)
author
Holger Schemel
<info@artsoft.org>
Sat, 9 Apr 2022 09:05:52 +0000
(11:05 +0200)
committer
Holger Schemel
<info@artsoft.org>
Sat, 9 Apr 2022 09:05:52 +0000
(11:05 +0200)
src/tools.c
patch
|
blob
|
history
src/tools.h
patch
|
blob
|
history
diff --git
a/src/tools.c
b/src/tools.c
index bde987901f8b4181c824ae673faa4cde114aea90..67c870083e2d4ee6456d0900a6e36c432a56a474 100644
(file)
--- 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 dc5da845c126f16f57c3cd97347e050a23adc834..3413308c8926cfa395c5ea028f6ee191d49e36a0 100644
(file)
--- 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