Skip to content

Commit

Permalink
Added an option to edit the default ServerList.
Browse files Browse the repository at this point in the history
This also added a dependency to Newtonsoft.Json
Also updated .NetFramework to 4.8 since 4.6 is EoL since April 22
  • Loading branch information
Tondorian committed Oct 25, 2024
1 parent 70529d9 commit ca39b48
Show file tree
Hide file tree
Showing 10 changed files with 506 additions and 125 deletions.
1 change: 1 addition & 0 deletions patcher/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ obj/*
/HitmanPatcher.sln.DotSettings.user
/.idea/.idea.HitmanPatcher/.idea/riderMarkupCache.xml
*.suo
packages/*
3 changes: 1 addition & 2 deletions patcher/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>.
-->

<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
</configuration>
14 changes: 14 additions & 0 deletions patcher/GameServer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HitmanPatcher
{
public class GameServer
{
public string ServerName { get; set; }
public string ServerAddress { get; set; }
}
}
28 changes: 17 additions & 11 deletions patcher/HitmanPatcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@
- You should have received a copy of the GNU Affero General Public License
- along with this program. If not, see <https://www.gnu.org/licenses/>.
-->

<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x64</Platform>
Expand All @@ -28,7 +26,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>HitmanPatcher</RootNamespace>
<AssemblyName>PeacockPatcher</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<ShouldCreateLogs>True</ShouldCreateLogs>
Expand All @@ -40,7 +38,6 @@
<AssemblyFileVersionSettings>None.None.None.Increment</AssemblyFileVersionSettings>
<LangVersion>8</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
Expand All @@ -51,7 +48,6 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE;PLATFORM_STEAM;PLATFORM_EPIC</DefineConstants>
Expand All @@ -62,14 +58,16 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>

<PropertyGroup>
<ApplicationIcon>patcher.ico</ApplicationIcon>
</PropertyGroup>

<ItemGroup>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Windows.Forms.DataVisualization" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
Expand All @@ -79,14 +77,14 @@
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>

<ItemGroup>
<Compile Include="Cli.cs" />
<Compile Include="CliLocale.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>CliLocale.resx</DependentUpon>
</Compile>
<Compile Include="GameServer.cs" />
<Compile Include="MainForm.cs">
<SubType>Form</SubType>
</Compile>
Expand Down Expand Up @@ -119,6 +117,12 @@
<Compile Include="PatchDefinitions\v3_70.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ServerListEditor.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="ServerListEditor.Designer.cs">
<DependentUpon>ServerListEditor.cs</DependentUpon>
</Compile>
<Compile Include="Settings.cs" />
<Compile Include="TrayOptionsForm.cs">
<SubType>Form</SubType>
Expand Down Expand Up @@ -148,12 +152,16 @@
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<EmbeddedResource Include="ServerListEditor.resx">
<DependentUpon>ServerListEditor.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="TrayOptionsForm.resx">
<LastGenOutput>TrayOptionsForm.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="Novikov_error.png" />
<None Include="Novikov_standard.png" />
<None Include="Novikov_success.png" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
Expand All @@ -167,11 +175,9 @@
<Compile Include="AOBScanner.cs" />
<Compile Include="Pinvoke.cs" />
</ItemGroup>

<ItemGroup>
<None Include="App.config" />
<Content Include="patcher.ico" />
</ItemGroup>

<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
</Project>
Loading

0 comments on commit ca39b48

Please sign in to comment.