diff --git a/InitManager.cpp b/InitManager.cpp index 935f5f1..29d80b3 100644 --- a/InitManager.cpp +++ b/InitManager.cpp @@ -4,7 +4,12 @@ InitManager_SDL::InitManager_SDL() { if(SDL_Init(SDL_INIT_EVERYTHING)<0) { + #ifndef __C4DROID__ Global::ErrorQuit("Failed to init SDL2."); + #else + /// C4droid does not fully support SDL2, + /// so initializing everything crashes. + #endif } } diff --git a/basic_config.h b/basic_config.h index 314fa86..d2b0ebb 100644 --- a/basic_config.h +++ b/basic_config.h @@ -14,7 +14,7 @@ using namespace std; #include "SDL2/SDL_ttf.h" #include "SDL2/SDL_image.h" -#include "SDL2/SDL_Mixer.h" +#include "SDL2/SDL_mixer.h" class NonCopyable {