Ignore:
Timestamp:
May 7, 2020, 12:46:55 AM (5 years ago)
Author:
chronos
Message:
  • Added: New Global unit with global constants.
  • Modified: Multiple occurence of string constants used for subdirectories replaced by functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Help.pas

    r188 r189  
    55
    66uses
    7   Protocol, ScreenTools, BaseWin, StringTables, Math,
    8   LCLIntf, LCLType, LMessages, Messages, SysUtils, Classes, Graphics, Controls, Forms,
    9   ExtCtrls, ButtonB, PVSB, Types, fgl;
     7  Protocol, ScreenTools, BaseWin, StringTables, Math, LCLIntf, LCLType,
     8  LMessages, Messages, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls,
     9  ButtonB, PVSB, Types, fgl;
    1010
    1111const
     
    123123  HelpDlg: THelpDlg;
    124124
     125
    125126implementation
    126127
    127128uses
    128   Directories, ClientTools, Term, Tribes, Inp, Messg, PixelPointer;
     129  Directories, ClientTools, Term, Tribes, Inp, Messg, PixelPointer, Global;
    129130
    130131{$R *.lfm}
     
    12291230    List := TStringList.Create;
    12301231    Plus := TStringList.Create;
    1231     if FindFirst(HomeDir + 'Graphics' + DirectorySeparator + '*.credits.txt', $27, sr) = 0 then
     1232    if FindFirst(GetGraphicsDir + DirectorySeparator + '*.credits.txt', $27, sr) = 0 then
    12321233      repeat
    1233         Plus.LoadFromFile(HomeDir + 'Graphics' + DirectorySeparator + sr.Name);
     1234        Plus.LoadFromFile(GetGraphicsDir + DirectorySeparator + sr.Name);
    12341235        List.AddStrings(Plus);
    12351236      until FindNext(sr) <> 0;
     
    12621263  begin
    12631264    List := TStringList.Create;
    1264     List.LoadFromFile(HomeDir + 'Sounds' + DirectorySeparator + 'sound.credits.txt');
     1265    List.LoadFromFile(GetSoundsDir + DirectorySeparator + 'sound.credits.txt');
    12651266    for i := 0 to List.Count - 1 do begin
    12661267      s := List[i];
     
    19481949        case Link and $FF of
    19491950          1: OpenDocument(pchar(HomeDir + 'AI Template' + DirectorySeparator + 'AI development manual.html'));
    1950           2: OpenURL('http://c-evo.org');
    1951           3: OpenURL('http://c-evo.org/_sg/contact');
     1951          2: OpenURL(CevoHomepage);
     1952          3: OpenURL(CevoHomepageContact);
    19521953        end
    19531954      else
Note: See TracChangeset for help on using the changeset viewer.