DEADSOFTWARE

read dfconfig.cfg before init
[d2df-sdl.git] / src / game / g_main.pas
index d60f2ddaa6de5fbf4940eff6a8d95f0e473b4299..92c0ff5aa2a35d009fec83e43c69a688f6655cd5 100644 (file)
@@ -111,8 +111,12 @@ begin
     raise Exception.Create('SDL: Init failed: ' + SDL_GetError());
 {$ENDIF}
 
+  e_WriteLog('Init Input', TMsgType.Notify);
+  e_InitInput;
+
   e_WriteLog('Read config file', TMsgType.Notify);
   g_Options_Read(GameDir + '/' + CONFIG_FILENAME);
+  g_Console_SysInit;
 
   //GetSystemDefaultLCID()
 
@@ -202,8 +206,6 @@ begin
   NoSound := False;
 {$ENDIF}
 
-  e_WriteLog('Init Input', TMsgType.Notify);
-  e_InitInput();
   g_Touch_Init;
 
 (*