diff --git a/projects/osx/make_no_fw.sh b/projects/osx/make_no_fw.sh index b81887f0a..7617ebba3 100755 --- a/projects/osx/make_no_fw.sh +++ b/projects/osx/make_no_fw.sh @@ -1,6 +1,6 @@ #!/bin/sh cd $(dirname "$0") -premake4 --file=../../premake4.lua gmake +premake4 --file=../../premake4.lua --with-mojoal gmake cd ../../make/macosx/ sed -e "s/-Wl,-x//g" -i .make diff --git a/src/eepp/window/backend/SDL2/platformhelpersdl2.cpp b/src/eepp/window/backend/SDL2/platformhelpersdl2.cpp index 8d82f704b..a384bd41e 100644 --- a/src/eepp/window/backend/SDL2/platformhelpersdl2.cpp +++ b/src/eepp/window/backend/SDL2/platformhelpersdl2.cpp @@ -1,5 +1,8 @@ #include #include +#include + +using namespace EE::System; #if EE_PLATFORM == EE_PLATFORM_EMSCRIPTEN #include @@ -22,7 +25,10 @@ bool PlatformHelperSDL2::openURL( const std::string& url ) { return true; #else #if SDL_VERSION_ATLEAST(2,0,14) - return SDL_OpenURL( url.c_str() ) == 0; + int res = SDL_OpenURL( url.c_str() ); + if ( res != 0 ) + Log::error( "PlatformHelperSDL2::openURL: Failed with error - %s", SDL_GetError() ); + return res == 0; #else return false; #endif