Changeset 64 for trunk/Start.pas
- Timestamp:
- Jan 14, 2017, 12:52:41 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Start.pas
r53 r64 107 107 108 108 uses 109 Directories, Protocol, Direct, ScreenTools, Inp, Back ;109 Directories, Protocol, Direct, ScreenTools, Inp, Back, Locale; 110 110 111 111 {$R *.lfm} … … 249 249 250 250 ActionsOffered := [maManual, maCredits, maWeb]; 251 if FileExists(HomeDir + 'Configurator.exe') then 252 Include(ActionsOffered, maConfig); 251 Include(ActionsOffered, maConfig); 253 252 if FileExists(HomeDir + 'AI Template' + DirectorySeparator + 'AI development manual.html') then 254 253 Include(ActionsOffered, maAIDev); … … 404 403 i: integer; 405 404 begin 406 F ormerGames.Free;407 Maps.Free;408 Mini.Free;409 EmptyPicture.Free;410 LogoBuffer.Free;405 FreeAndNil(FormerGames); 406 FreeAndNil(Maps); 407 FreeAndNil(Mini); 408 FreeAndNil(EmptyPicture); 409 FreeAndNil(LogoBuffer); 411 410 for i := 0 to nBrain - 1 do 412 BrainPicture[i].Free;411 FreeAndNil(BrainPicture[i]); 413 412 end; 414 413 … … 1565 1564 maConfig: 1566 1565 begin 1567 OpenDocument(pchar(HomeDir + 'Configurator.exe')); 1568 Close 1566 LocaleDlg := TLocaleDlg.Create(nil); 1567 if LocaleDlg.ShowModal = mrOk then begin 1568 LoadPhrases; 1569 Invalidate; 1570 end; 1571 FreeAndNil(LocaleDlg); 1569 1572 end; 1570 1573 maManual: … … 1573 1576 DirectHelp(cStartCredits); 1574 1577 maAIDev: 1575 1578 OpenDocument(pchar(HomeDir + 'AI Template' + DirectorySeparator + 'AI development manual.html')); 1576 1579 maWeb: 1577 1580 OpenURL('http://c-evo.org')
Note:
See TracChangeset
for help on using the changeset viewer.