Changeset 13 for trunk/UCore.pas
- Timestamp:
- Oct 5, 2019, 11:16:00 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r11 r13 118 118 Game.Size := Point(ReadIntegerWithDefault('SizeX', 4), ReadIntegerWithDefault('SizeY', 4)); 119 119 Game.AnimationDuration := ReadIntegerWithDefault('AnimationDuration', 30); 120 if ValueExists('LanguageCode') then 121 Translator1.Language := Translator1.Languages.SearchByCode(ReadStringWithDefault('LanguageCode', '')) 122 else Translator1.Language := Translator1.Languages.SearchByCode(''); 120 123 finally 121 124 Free; … … 133 136 WriteInteger('SizeY', Game.Size.Y); 134 137 WriteInteger('AnimationDuration', Game.AnimationDuration); 138 if Assigned(Translator1.Language) and (Translator1.Language.Code <> '') then 139 WriteString('LanguageCode', Translator1.Language.Code) 140 else DeleteValue('LanguageCode'); 135 141 finally 136 142 Free;
Note:
See TracChangeset
for help on using the changeset viewer.