mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 02:26:29 +03:00
Minor changes for macOS.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
#include <eepp/window/backend/SDL2/base.hpp>
|
||||
#include <eepp/window/backend/SDL2/platformhelpersdl2.hpp>
|
||||
#include <eepp/system/log.hpp>
|
||||
|
||||
using namespace EE::System;
|
||||
|
||||
#if EE_PLATFORM == EE_PLATFORM_EMSCRIPTEN
|
||||
#include <emscripten.h>
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user