mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 03:14:34 +01:00
Add support for launching URLs on MacOSX
This commit is contained in:
1 parent
55b8a95a29
commit
4c8922d9e7
1 file changed
+4
@@ -232,6 +232,10 @@ void LaunchBrowser(const char *url)
|
||||
#elif __linux__
|
||||
std::string command = std::string("xdg-open ") + url;
|
||||
system(command.c_str());
|
||||
#elif __APPLE__
|
||||
char temp[1024];
|
||||
sprintf(temp, "open %s", url);
|
||||
system(temp);
|
||||
#else
|
||||
ILOG("Would have gone to %s but LaunchBrowser is not implemented on this platform", url);
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user