Removed variable during SDL initialization
This commit is contained in:
parent
31719df8a4
commit
885b15a71f
1 changed files with 10 additions and 9 deletions
19
src/main.cpp
19
src/main.cpp
|
@ -1015,22 +1015,23 @@ void check_error_sdl(const bool check, const char* message)
|
||||||
|
|
||||||
static int real_main2(int argc, TCHAR** argv)
|
static int real_main2(int argc, TCHAR** argv)
|
||||||
{
|
{
|
||||||
|
if (
|
||||||
#ifdef USE_DISPMANX
|
#ifdef USE_DISPMANX
|
||||||
int ret = SDL_Init(SDL_INIT_TIMER
|
SDL_Init(SDL_INIT_TIMER
|
||||||
| SDL_INIT_AUDIO
|
| SDL_INIT_AUDIO
|
||||||
| SDL_INIT_JOYSTICK
|
| SDL_INIT_JOYSTICK
|
||||||
| SDL_INIT_HAPTIC
|
| SDL_INIT_HAPTIC
|
||||||
| SDL_INIT_GAMECONTROLLER
|
| SDL_INIT_GAMECONTROLLER
|
||||||
| SDL_INIT_EVENTS) != 0;
|
| SDL_INIT_EVENTS) != 0
|
||||||
#else
|
#else
|
||||||
const int ret = SDL_Init(SDL_INIT_EVERYTHING) != 0;
|
SDL_Init(SDL_INIT_EVERYTHING) != 0
|
||||||
#endif
|
#endif
|
||||||
if (ret < 0)
|
)
|
||||||
{
|
{
|
||||||
printf("SDL could not initialize! SDL_Error: %s\n", SDL_GetError());
|
printf("SDL could not initialize! SDL_Error: %s\n", SDL_GetError());
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
|
||||||
keyboard_settrans();
|
keyboard_settrans();
|
||||||
set_config_changed();
|
set_config_changed();
|
||||||
if (restart_config[0])
|
if (restart_config[0])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue