Changeset 330 for trunk/Core.pas
- Timestamp:
- Jul 19, 2024, 9:46:33 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r328 r330 610 610 procedure TCore.UpdateOtherForms; 611 611 begin 612 if Assigned(FormMain.FormCharts) and FormMain.FormCharts.Visible then FormMain.FormCharts.Redraw; 613 if Assigned(FormMain.FormUnitMoves) and FormMain.FormUnitMoves.Visible then FormMain.FormUnitMoves.ReloadList; 614 if Assigned(FormMain.FormPlayersStats) and FormMain.FormPlayersStats.Visible then FormMain.FormPlayersStats.ReloadList; 612 if Assigned(FormMain.FormCharts) and FormMain.FormCharts.Visible then 613 FormMain.FormCharts.Redraw; 614 if Assigned(FormMain.FormUnitMoves) and FormMain.FormUnitMoves.Visible then 615 FormMain.FormUnitMoves.ReloadList; 616 if Assigned(FormMain.FormPlayersStats) and FormMain.FormPlayersStats.Visible then 617 FormMain.FormPlayersStats.ReloadList; 615 618 end; 616 619 … … 633 636 NewUnitKind: TUnitKind; 634 637 SystemsDir: string; 638 const 639 GameSystemsDirName = 'Systems'; 640 DefaultGameSystemName = 'Default'; 635 641 begin 636 642 if GameFilesDir <> '' then 637 SystemsDir := GameFilesDir + DirectorySeparator + 'Systems'638 else SystemsDir := 'Systems';643 SystemsDir := GameFilesDir + DirectorySeparator + GameSystemsDirName 644 else SystemsDir := GameSystemsDirName; 639 645 if DirectoryExists(SystemsDir) then begin 640 646 GameSystems.LoadFromDir(SystemsDir); … … 642 648 // Create default game system if the directory with definitions was not found 643 649 NewGameSystem := TGameSystem.Create; 644 NewGameSystem.FileName := 'HexWars';650 NewGameSystem.FileName := DefaultGameSystemName; 645 651 NewUnitKind := TUnitKind.Create; 646 652 NewUnitKind.Name := 'Unit';
Note:
See TracChangeset
for help on using the changeset viewer.