Changeset 370 for trunk/Core.pas
- Timestamp:
- Jan 2, 2025, 4:56:18 PM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r365 r370 524 524 {$ENDIF} 525 525 begin 526 GameFilesDir := '';526 GameFilesDir := ExtractFilePath(ParamStr(0)); 527 527 {$IFDEF Linux} 528 528 // If installed in Linux system then use installation shared game directory for data files … … 817 817 818 818 procedure TCore.Init; 819 var 820 GameSystem: TGameSystem; 819 821 begin 820 822 if not Core.Initialized then begin … … 828 830 // GameSystemName needs to be loaded before game systems config itself. 829 831 // Players reference Nations from game system. 830 GameSettings.GameSystem.Assign(GameSystems.SearchByName(string(XMLConfig1.GetValue(DOMString('Game/GameSystemName'), DOMString('HexWars'))))); 832 GameSystem := GameSystems.SearchByName(string(XMLConfig1.GetValue(DOMString('Game/GameSystemName'), DOMString('HexWars')))); 833 if Assigned(GameSystem) then GameSettings.GameSystem.Assign(GameSystem); 831 834 GameSettings.LoadConfig(XMLConfig1, 'Game'); 832 835 Server.LoadConfig(XMLConfig1, 'Server');
Note:
See TracChangeset
for help on using the changeset viewer.