Changeset 328 for trunk/Core.pas
- Timestamp:
- Jul 19, 2024, 8:40:00 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Core.pas
r327 r328 7 7 Game, ApplicationInfo, PersistentForm, ScaleDPI, Translator, DOM, 8 8 RegistryEx, LastOpenedList, Theme, Registry, Menus, FormCharts, FormMain, 9 FormClient, Player, GameServer, GameClient, Generics.Collections,10 ServerList, GameSystem, Graphics,&Unit;9 FormClient, Player, GameServer, GameClient, ServerList, GameSystem, Graphics, 10 &Unit; 11 11 12 12 type … … 486 486 487 487 procedure TCore.DataModuleCreate(Sender: TObject); 488 {$IFDEF Linux} 488 489 const 489 490 LinuxGameFilesDir = '/usr/share/xtactics'; 490 491 LinuxLanguagesDir = LinuxGameFilesDir + '/Languages'; 492 {$ENDIF} 491 493 begin 492 494 GameFilesDir := ''; … … 526 528 TFormEx.PersistentForm := PersistentForm1; 527 529 528 FormMain := TFormMain.Create(nil);530 Application.CreateForm(TFormMain, FormMain); 529 531 FormMain.Show; 530 532 end; … … 533 535 begin 534 536 FreeAndNil(ServerList); 535 if Assigned(FormMain.FormPlayersStats) then FreeAndNil(FormMain.FormPlayersStats);536 if Assigned(FormMain.FormUnitMoves) then FreeAndNil(FormMain.FormUnitMoves);537 if Assigned(FormMain.FormCharts) then FreeAndNil(FormMain.FormCharts);538 if Assigned(FormMain.FormKeyShortcuts) then FreeAndNil(FormMain.FormKeyShortcuts);539 537 FreeAndNil(FormClients); 540 538 FreeAndNil(StoredDimension); … … 544 542 FreeAndNil(GameSettings); 545 543 FreeAndNil(GameSystems); 546 FreeAndNil(FormMain);547 544 end; 548 545
Note:
See TracChangeset
for help on using the changeset viewer.