Changeset 309 for trunk


Ignore:
Timestamp:
Aug 18, 2021, 12:37:33 PM (3 years ago)
Author:
chronos
Message:
  • Added: Snapcraft definition file for creation of Ubuntu snap packages.
  • Added: Screenshot images.
  • Modified: Detect language files independent of executable location.
Location:
trunk
Files:
8 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/UPixelPointer.pas

    r308 r309  
    138138var
    139139  SrcPtr, DstPtr: TPixelPointer;
    140   SubPtr: TPixelPointer;
    141140  X, Y: Integer;
    142141  XX, YY: Integer;
  • trunk/Read me.txt

    r306 r309  
    1 Developed using Lazarus 2.0.10 (http://www.lazarus-ide.org/)
     1Developed using Lazarus 2.0.12 (http://www.lazarus-ide.org/)
  • trunk/UCore.lfm

    r308 r309  
    28212821    AppName = 'xTactics'
    28222822    Description = 'Turn-based strategy game inspired by classic Risk board game. The game is highly configurable to allow to adjust battle field and game rules.'
    2823     ReleaseDate = 43688
     2823    ReleaseDate = 44426
    28242824    RegistryKey = '\Software\xTactics'
    28252825    RegistryRoot = rrKeyCurrentUser
  • trunk/UCore.pas

    r308 r309  
    130130
    131131uses
    132   UFormMain, UFormNew, UFormSettings, UFormAbout, UClientAI, UFormKeyShortcuts,
     132  UFormMain, UFormNew, UFormSettings, UClientAI, UFormKeyShortcuts,
    133133  UFormHelp, UFormCharts, UFormUnitMoves, UFormPlayersStats, UClientGUI;
    134134
     
    475475
    476476procedure TCore.DataModuleCreate(Sender: TObject);
    477 begin
    478   GameSystems := TGameSystems.Create;
     477const
     478  LinuxLanguagesDir = '/usr/share/xtactics/languages';
     479begin
     480  {$IFDEF Linux}
     481  // If installed in Linux system then use installation directory for po files
     482  if not DirectoryExists(CoolTranslator1.POFilesFolder) and DirectoryExists(LinuxLanguagesDir) then
     483    CoolTranslator1.POFilesFolder := LinuxLanguagesDir;
     484  {$ENDIF}
     485 
     486    GameSystems := TGameSystems.Create;
    479487  Server := TServer.Create;
    480488  LocalClients := TClients.Create;
     
    493501  FormClients := TFPGObjectList<TFormClient>.Create;
    494502  ServerList := TServerList.Create;
    495 
    496   {$IFDEF Linux}
    497   // If installed in Linux system then use installation directory for po files
    498   if Application.ExeName = '/usr/bin/xtactics' then
    499     CoolTranslator1.POFilesFolder := '/usr/share/xtactics/languages';
    500   {$ENDIF}
    501503end;
    502504
  • trunk/xtactics.lpi

    r308 r309  
    7171      </Item2>
    7272      <SharedMatrixOptions Count="2">
    73         <Item1 ID="257295799247" Targets="Common,CoolTranslator,TemplateGenerics,CoolStreaming" Modes="Debug" Value="-g -gl -gh -CirotR -O1"/>
    74         <Item2 ID="262602526292" Targets="Common,CoolTranslator,TemplateGenerics,CoolStreaming" Modes="Release" Value="-CX -XX -O3"/>
     73        <Item1 ID="257295799247" Targets="Common,TemplateGenerics,CoolStreaming" Modes="Debug" Value="-g -gl -gh -CirotR -O1"/>
     74        <Item2 ID="262602526292" Targets="Common,TemplateGenerics,CoolStreaming" Modes="Release" Value="-CX -XX -O3"/>
    7575      </SharedMatrixOptions>
    7676    </BuildModes>
Note: See TracChangeset for help on using the changeset viewer.