Changeset 274 for trunk/UCore.pas
- Timestamp:
- Feb 3, 2019, 8:32:20 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r273 r274 106 106 procedure LoadConfig; 107 107 procedure SaveConfig; 108 procedure SaveConfigAll; 108 109 procedure Spectate(Player: TPlayer); 109 110 procedure UpdateInterface; … … 225 226 end; 226 227 228 procedure TCore.SaveConfigAll; 229 begin 230 GameSettings.SaveConfig(XMLConfig1, 'Game'); 231 Server.SaveConfig(XMLConfig1, 'Server'); 232 ServerList.SaveConfig(XmlConfig1, 'ServerList'); 233 SaveConfig; 234 XMLConfig1.Flush; 235 end; 236 227 237 procedure TCore.CommandLineParams; 228 238 var … … 348 358 GameSettings.PostConfig; 349 359 Game.Assign(GameSettings); 360 SaveConfigAll; 350 361 StartNewGame; 351 362 GameLoaded := False; … … 758 769 procedure TCore.Done; 759 770 begin 760 GameSettings.SaveConfig(XMLConfig1, 'Game'); 761 Server.SaveConfig(XMLConfig1, 'Server'); 762 ServerList.SaveConfig(XmlConfig1, 'ServerList'); 763 SaveConfig; 764 XMLConfig1.Flush; 771 SaveConfigAll; 765 772 end; 766 773
Note:
See TracChangeset
for help on using the changeset viewer.