Skip to content

Commit

Permalink
v1.1.5.6
Browse files Browse the repository at this point in the history
- auto restart TA option is enabled by default
- added command line argument to load specified profile (strictly full path)
  • Loading branch information
setsumi committed Jan 15, 2019
1 parent 04ecff6 commit 4e2f3f3
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 24 deletions.
42 changes: 21 additions & 21 deletions TAHelper2009/TAHelper.cbproj
Original file line number Diff line number Diff line change
Expand Up @@ -77,40 +77,40 @@
<BCC_OptimizeForSize>true</BCC_OptimizeForSize>
</PropertyGroup>
<ItemGroup>
<CppCompile Include="TAHelper.cpp">
<BuildOrder>-1</BuildOrder>
<BuildOrder>0</BuildOrder>
</CppCompile>
<ResFiles Include="TAHelper.res">
<BuildOrder>-1</BuildOrder>
<BuildOrder>1</BuildOrder>
</ResFiles>
<CppCompile Include="WindowUtils.cpp">
<DependentOn>WindowUtils.h</DependentOn>
<BuildOrder>7</BuildOrder>
</CppCompile>
<CppCompile Include="Wakan.cpp">
<DependentOn>Wakan.h</DependentOn>
<BuildOrder>6</BuildOrder>
</CppCompile>
<None Include="ModelSupport_TAHelper\default.txvpck"/>
<None Include="ModelSupport_TAHelper\default.txaPackage"/>
<CppCompile Include="Unit1.cpp">
<BuildOrder>2</BuildOrder>
<Form>FormTAHelper</Form>
<DependentOn>Unit1.h</DependentOn>
<BuildOrder>0</BuildOrder>
</CppCompile>
<None Include="ModelSupport_TAHelper\default.txaPackage"/>
<CppCompile Include="UnitOSD.cpp">
<Form>FormOSD</Form>
<DependentOn>UnitOSD.h</DependentOn>
<BuildOrder>5</BuildOrder>
</CppCompile>
<None Include="changelog.txt"/>
<CppCompile Include="..\TAHplugin\StringUtils.cpp">
<DependentOn>..\TAHplugin\StringUtils.h</DependentOn>
<BuildOrder>8</BuildOrder>
</CppCompile>
<None Include="changelog.txt"/>
<ResFiles Include="TAHelper.res">
<BuildOrder>-1</BuildOrder>
<BuildOrder>1</BuildOrder>
</ResFiles>
<CppCompile Include="TAHelper.cpp">
<BuildOrder>-1</BuildOrder>
<BuildOrder>0</BuildOrder>
</CppCompile>
<CppCompile Include="WindowUtils.cpp">
<DependentOn>WindowUtils.h</DependentOn>
<BuildOrder>7</BuildOrder>
</CppCompile>
<None Include="ModelSupport_TAHelper\default.txvpck"/>
<CppCompile Include="Wakan.cpp">
<DependentOn>Wakan.h</DependentOn>
<BuildOrder>6</BuildOrder>
</CppCompile>
<FormResources Include="Unit1.dfm"/>
<FormResources Include="UnitOSD.dfm"/>
<BuildConfiguration Include="Base">
Expand All @@ -137,7 +137,7 @@
<VersionInfo Name="MajorVer">1</VersionInfo>
<VersionInfo Name="MinorVer">1</VersionInfo>
<VersionInfo Name="Release">5</VersionInfo>
<VersionInfo Name="Build">5</VersionInfo>
<VersionInfo Name="Build">6</VersionInfo>
<VersionInfo Name="Debug">True</VersionInfo>
<VersionInfo Name="PreRelease">False</VersionInfo>
<VersionInfo Name="Special">False</VersionInfo>
Expand All @@ -149,7 +149,7 @@
<VersionInfoKeys>
<VersionInfoKeys Name="CompanyName"/>
<VersionInfoKeys Name="FileDescription">TAHelper by furniture</VersionInfoKeys>
<VersionInfoKeys Name="FileVersion">1.1.5.5</VersionInfoKeys>
<VersionInfoKeys Name="FileVersion">1.1.5.6</VersionInfoKeys>
<VersionInfoKeys Name="InternalName"/>
<VersionInfoKeys Name="LegalCopyright"/>
<VersionInfoKeys Name="LegalTrademarks"/>
Expand Down
Binary file modified TAHelper2009/TAHelper.res
Binary file not shown.
6 changes: 4 additions & 2 deletions TAHelper2009/Unit1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ void TFormTAHelper::LoadOptions(UnicodeString file)
m_Options.WKpatched = ini->ReadInteger(L"WaKan", L"WKpatched", 0);

m_Options.STRtextFromTA = ini->ReadInteger(L"Systran", L"STRtextFromTA", 1);
m_Options.TARestartOnHang = ini->ReadInteger(L"TA", L"TARestartOnHang", 0);
m_Options.TARestartOnHang = ini->ReadInteger(L"TA", L"TARestartOnHang", 1);
// close ini file
delete ini;
StatusbarError(L"Configuration loaded", 2);
Expand Down Expand Up @@ -1363,7 +1363,9 @@ void __fastcall TFormTAHelper::FormShow(TObject *Sender)
if(Boot) { // startup init
LoadOptionsGlobal();

UnicodeString filename(GetLastConfig()); // get last config file
UnicodeString filename(ParamStr(1)); // get config file from command line
if (!filename.Length())
filename = GetLastConfig(); // get last config file
if (!filename.Length())
filename = ProgramDir() + L"Default.tah"; // default config file
LoadOptions(filename);
Expand Down
2 changes: 1 addition & 1 deletion TAHelper2009/Unit1.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -1470,7 +1470,7 @@ object FormTAHelper: TFormTAHelper
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
ItemHeight = 13
ItemHeight = 0
ParentFont = False
ParentShowHint = False
ShowHint = False
Expand Down

0 comments on commit 4e2f3f3

Please sign in to comment.