| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | misrepresented as being the original software. |
| | | 3. This notice may not be removed or altered from any source distribution. |
| | | */ |
| | | #include "SDL_config.h" |
| | | #include "./SDL_internal.h" |
| | | |
| | | #if defined(__WIN32__) |
| | | #include "core/windows/SDL_windows.h" |
| | |
| | | #if !SDL_TIMERS_DISABLED |
| | | extern int SDL_TimerInit(void); |
| | | extern void SDL_TimerQuit(void); |
| | | extern void SDL_InitTicks(void); |
| | | extern void SDL_TicksInit(void); |
| | | extern void SDL_TicksQuit(void); |
| | | #endif |
| | | #if SDL_VIDEO_DRIVER_WINDOWS |
| | | extern int SDL_HelperWindowCreate(void); |
| | |
| | | SDL_ClearError(); |
| | | |
| | | #if SDL_VIDEO_DRIVER_WINDOWS |
| | | if (SDL_HelperWindowCreate() < 0) { |
| | | return -1; |
| | | } |
| | | if ((flags & (SDL_INIT_HAPTIC|SDL_INIT_JOYSTICK))) { |
| | | if (SDL_HelperWindowCreate() < 0) { |
| | | return -1; |
| | | } |
| | | } |
| | | #endif |
| | | |
| | | #if !SDL_TIMERS_DISABLED |
| | | SDL_InitTicks(); |
| | | SDL_TicksInit(); |
| | | #endif |
| | | |
| | | if ((flags & SDL_INIT_GAMECONTROLLER)) { |
| | |
| | | #endif |
| | | SDL_QuitSubSystem(SDL_INIT_EVERYTHING); |
| | | |
| | | #if !SDL_TIMERS_DISABLED |
| | | SDL_TicksQuit(); |
| | | #endif |
| | | |
| | | SDL_ClearHints(); |
| | | SDL_AssertionsQuit(); |
| | | SDL_LogResetPriorities(); |
| | |
| | | return "AIX"; |
| | | #elif __ANDROID__ |
| | | return "Android"; |
| | | #elif __BEOS__ |
| | | return "BeOS"; |
| | | #elif __BSDI__ |
| | | return "BSDI"; |
| | | #elif __DREAMCAST__ |