Added timer initialisation for the SDL setup
[clinton/Virtual-Jaguar-Rx.git] / src / gui / app.cpp
index b9903e0..63a2501 100644 (file)
@@ -17,7 +17,7 @@
 // JPM  Sept./2016  Visual Studio support, and Soft debugger support (--debugger)\r
 // JPM  09/  /2017  Added option (--dram-max) to support 8MB ram (which doesn't exist)\r
 // JPM  Sept./2017  Added the 'Rx' word to the emulator name, updated the credits line, added option (--es-all, --es-ui, --es-alpine & --es-debugger) to support the erase settings\r
-// JPM  10/09/2018  Added the Rx version's contact in the help text\r
+// JPM   Oct./2018  Added the Rx version's contact in the help text, added timer initialisation in the SDL_Init\r
 //\r
 \r
 #include "app.h"\r
@@ -106,7 +106,7 @@ int main(int argc, char * argv[])
        }\r
 \r
        // Set up SDL library\r
-       if (SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_AUDIO) < 0)\r
+       if (SDL_Init(SDL_INIT_JOYSTICK | SDL_INIT_AUDIO | SDL_INIT_TIMER) < 0)\r
        {\r
                WriteLog("VJ: Could not initialize the SDL library: %s\n", SDL_GetError());\r
        }\r