diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-09-29 16:57:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-09-29 16:57:20 +0300 |
commit | 0e79d3567ffff5da177b58b02f8eba0efdf3864e (patch) | |
tree | 9083166efbc54553660682047115a9b06f7ff4ce /src | |
parent | ab9e0ea04e66e3d3866e5bad678ffc4177a11781 (diff) | |
download | plus-0e79d3567ffff5da177b58b02f8eba0efdf3864e.tar.gz plus-0e79d3567ffff5da177b58b02f8eba0efdf3864e.tar.bz2 plus-0e79d3567ffff5da177b58b02f8eba0efdf3864e.tar.xz plus-0e79d3567ffff5da177b58b02f8eba0efdf3864e.zip |
Add support for opening browser in Android with SDL2.
Diffstat (limited to 'src')
-rw-r--r-- | src/utils/process.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/utils/process.cpp b/src/utils/process.cpp index efd799987..0675adae3 100644 --- a/src/utils/process.cpp +++ b/src/utils/process.cpp @@ -28,6 +28,12 @@ #include "localconsts.h" +#ifdef USE_SDL2 +#ifdef ANDROID +#include <SDL_system.h> +#endif +#endif + #include "debug.h" const int timeOut = 10; @@ -244,7 +250,7 @@ bool openBrowser(std::string url) bool openBrowser(std::string url) { #ifdef USE_SDL2 - // +++ need add support + SDL_OpenBrowser(replaceAll(url, " ", "").c_str()); #else SDL_ANDROID_OpenBrowser(replaceAll(url, " ", "").c_str()); #endif |