mirror of
https://github.com/Kiritow/MiniEngine.git
synced 2024-03-22 13:11:22 +08:00
Bug Fixed on C4droid.
This commit is contained in:
parent
6871d622be
commit
fcf39e5cdb
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user