hedgewars/hwengine.pas
changeset 12186 322aaad4a93d
parent 11853 837f9f1b84a5
child 12433 d199a076eff9
equal deleted inserted replaced
12185:cb7d5fd2e515 12186:322aaad4a93d
   371             ParseCommand('fullscr 0', true);
   371             ParseCommand('fullscr 0', true);
   372         end;
   372         end;
   373 
   373 
   374     ControllerInit(); // has to happen before InitKbdKeyTable to map keys
   374     ControllerInit(); // has to happen before InitKbdKeyTable to map keys
   375     InitKbdKeyTable();
   375     InitKbdKeyTable();
   376     AddProgress();
       
   377     if not allOK then exit;
   376     if not allOK then exit;
   378 
   377 
   379     LoadLocale(cPathz[ptLocale] + '/en.txt');  // Do an initial load with english
   378     LoadLocale(cPathz[ptLocale] + '/en.txt');  // Do an initial load with english
   380     if cLocaleFName <> 'en.txt' then
   379     if cLocaleFName <> 'en.txt' then
   381         begin
   380         begin
   388         end
   387         end
   389     else cLocale := 'en';
   388     else cLocale := 'en';
   390 
   389 
   391     if not allOK then exit;
   390     if not allOK then exit;
   392     WriteLnToConsole(msgGettingConfig);
   391     WriteLnToConsole(msgGettingConfig);
       
   392 
       
   393     LoadFonts();
       
   394     AddProgress();
   393 
   395 
   394     if cTestLua then
   396     if cTestLua then
   395         begin
   397         begin
   396         ParseCommand('script ' + cScriptName, true);
   398         ParseCommand('script ' + cScriptName, true);
   397         end
   399         end