Changeset 301 for trunk/UCore.pas
- Timestamp:
- Jul 10, 2019, 11:35:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r299 r301 7 7 uses 8 8 Classes, SysUtils, XMLConf, FileUtil, ActnList, Controls, Dialogs, Forms, 9 UGame, UApplicationInfo, UPersistentForm, UScaleDPI, UCoolTranslator, 9 UGame, UApplicationInfo, UPersistentForm, UScaleDPI, UCoolTranslator, DOM, 10 10 URegistry, ULastOpenedList, UTheme, Registry, Menus, UFormClient, UPlayer, 11 11 UGameServer, UGameClient, fgl, UServerList, UGameSystem, Graphics; … … 326 326 FormAbout := TFormAbout.Create(Self); 327 327 try 328 FormAbout.ApplicationInfo := ApplicationInfo; 328 329 FormAbout.ShowModal; 329 330 finally … … 737 738 GameSettings.Players[1].Name := SPlayer + ' 2'; 738 739 740 // GameSystemName needs to be loaded before game systems config itself. 741 // Players reference Nations from game system. 742 GameSettings.GameSystemName := string(XMLConfig1.GetValue(DOMString('Game/GameSystemName'), DOMString('HexWars'))); 743 GameSettings.GameSystem := GameSystems.SearchByName(GameSettings.GameSystemName); 744 739 745 GameSettings.LoadConfig(XMLConfig1, 'Game'); 740 GameSettings.GameSystem := GameSystems.SearchByName(GameSettings.GameSystemName);741 746 if not Assigned(GameSettings.GameSystem) then 742 747 GameSettings.GameSystem := GameSystems.First;
Note:
See TracChangeset
for help on using the changeset viewer.