mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 20:01:25 +00:00
Made creation of SdlMutexManager earlier than other modules.
svn-id: r49555
This commit is contained in:
parent
33c36f3c7c
commit
7b63e8ae25
@ -106,6 +106,12 @@ void OSystem_SDL::initBackend() {
|
||||
// Enable unicode support if possible
|
||||
SDL_EnableUNICODE(1);
|
||||
|
||||
// Create and hook up the mutex manager, if none exists yet (we check for
|
||||
// this to allow subclasses to provide their own).
|
||||
if (_mutexManager == 0) {
|
||||
_mutexManager = new SdlMutexManager();
|
||||
}
|
||||
|
||||
// enable joystick
|
||||
if (joystick_num > -1 && SDL_NumJoysticks() > 0) {
|
||||
printf("Using joystick: %s\n", SDL_JoystickName(0));
|
||||
@ -145,12 +151,6 @@ void OSystem_SDL::initBackend() {
|
||||
_timerID = SDL_AddTimer(10, &timer_handler, _timer);
|
||||
}
|
||||
|
||||
// Create and hook up the mutex manager, if none exists yet (we check for
|
||||
// this to allow subclasses to provide their own).
|
||||
if (_mutexManager == 0) {
|
||||
_mutexManager = new SdlMutexManager();
|
||||
}
|
||||
|
||||
// Create and hook up the graphics manager, if none exists yet (we check for
|
||||
// this to allow subclasses to provide their own).
|
||||
if (_graphicsManager == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user