Bug Fixed on C4droid.

This commit is contained in:
unknown 2017-01-03 23:47:41 +08:00
parent 6871d622be
commit fcf39e5cdb
2 changed files with 6 additions and 1 deletions

View File

@ -4,7 +4,12 @@ InitManager_SDL::InitManager_SDL()
{ {
if(SDL_Init(SDL_INIT_EVERYTHING)<0) if(SDL_Init(SDL_INIT_EVERYTHING)<0)
{ {
#ifndef __C4DROID__
Global::ErrorQuit("Failed to init SDL2."); Global::ErrorQuit("Failed to init SDL2.");
#else
/// C4droid does not fully support SDL2,
/// so initializing everything crashes.
#endif
} }
} }

View File

@ -14,7 +14,7 @@ using namespace std;
#include "SDL2/SDL_ttf.h" #include "SDL2/SDL_ttf.h"
#include "SDL2/SDL_image.h" #include "SDL2/SDL_image.h"
#include "SDL2/SDL_Mixer.h" #include "SDL2/SDL_mixer.h"
class NonCopyable class NonCopyable
{ {