diff --git a/.gitignore b/.gitignore index 899fe5e..5d03c92 100644 --- a/.gitignore +++ b/.gitignore @@ -19,8 +19,6 @@ *.bat *.new -tgshd - # Lazarus autogenerated files (duplicated info) *.rst *.rsj @@ -36,4 +34,11 @@ backup/ lib/ # Application bundle for Mac OS -*.app/ \ No newline at end of file +*.app/ + +# Output binary folders +x86_64-linux/ + +# Binary +tests/console +tgshd \ No newline at end of file diff --git a/configuration.pas b/configuration.pas index b41d260..97bf9c2 100644 --- a/configuration.pas +++ b/configuration.pas @@ -147,9 +147,11 @@ destructor TConfig.Destroy; inherited Destroy; end; -initialization +initialization{$ifdef portable} CnfDir:=IncludeTrailingPathDelimiter(ExtractFileDir(ParamStr(0))); - Cnfg:=TConfig.Create(CnfDir+ChangeFileExt(ExtractFileName(ParamStr(0)), '.ini')); + Cnfg:=TConfig.Create(CnfDir+ChangeFileExt(ExtractFileName(ParamStr(0)), '.ini'));{$else} + CnfDir:=GetAppConfigDir(True); + Cnfg:=TConfig.Create(CnfDir+ChangeFileExt(ExtractFileName(ParamStr(0)), '.ini'));{$endif} finalization FreeAndNil(Cnfg); diff --git a/tgshd.lpi b/tgshd.lpi index 5b4d082..d98dfb1 100644 --- a/tgshd.lpi +++ b/tgshd.lpi @@ -1,14 +1,14 @@ - + + - <UseAppBundle Value="False"/> <ResourceType Value="res"/> @@ -19,7 +19,7 @@ <MajorVersionNr Value="1"/> <MinorVersionNr Value="1"/> <RevisionNr Value="1"/> - <BuildNr Value="3"/> + <BuildNr Value="5"/> </VersionInfo> <BuildModes Count="4"> <Item1 Name="Default" Default="True"/>