close Warning: Can't synchronize with repository "(default)" (No changeset 184 in the repository). Look in the Trac log for more information.

Changeset 134 for trunk/UCore.pas


Ignore:
Timestamp:
Jul 5, 2017, 6:24:55 PM (7 years ago)
Author:
chronos
Message:
  • Added: Player starts units can be configured in player dialog.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r132 r134  
    185185  AnimationSpeed := XMLConfig1.GetValue('AnimationSpeed', 50);
    186186  AutoSaveEnabled := XMLConfig1.GetValue('AutoSave', True);
    187   CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(XMLConfig1.GetValue('Language', ''));
     187  CoolTranslator1.Language := CoolTranslator1.Languages.SearchByCode(String(XMLConfig1.GetValue('Language', '')));
    188188  ScaleDPI1.DPI := Point(XMLConfig1.GetValue('DPIX', 96), XMLConfig1.GetValue('DPIY', 96));
    189189  ScaleDPI1.AutoDetect := XMLConfig1.GetValue('DPIAuto', True);
     
    192192procedure TCore.SaveConfig;
    193193begin
    194   XMLConfig1.SetValue('Language', CoolTranslator1.Language.Code);
     194  XMLConfig1.SetValue('Language', WideString(CoolTranslator1.Language.Code));
    195195  LastOpenedList1.SaveToXMLConfig(XMLConfig1, 'RecentFiles');
    196196  XMLConfig1.SetValue('DevelMode', DevelMode);
Note: See TracChangeset for help on using the changeset viewer.