v4.1.0.3, new versioning scheme

This commit is contained in:
goat 2019-11-18 21:30:19 +09:00
parent e54c405f5c
commit 28e348d5f0
3 changed files with 12 additions and 9 deletions

View file

@ -14,10 +14,13 @@
</PropertyGroup>
<PropertyGroup Label="Feature">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyVersion>3.2.0.0</AssemblyVersion>
<FileVersion>3.2.0.0</FileVersion>
<AssemblyVersion>4.1.0.3</AssemblyVersion>
<FileVersion>4.1.0.3</FileVersion>
<Description>XIVLauncher addon injection</Description>
<Version>3.2.0</Version>
<Version>4.1.0.3</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile></DocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EasyHook" Version="2.7.6270" />

View file

@ -14,9 +14,9 @@
</PropertyGroup>
<PropertyGroup Label="Feature">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<Version>3.0.0</Version>
<FileVersion>3.0.0.0</FileVersion>
<AssemblyVersion>4.1.0.3</AssemblyVersion>
<Version>4.1.0.3</Version>
<FileVersion>4.1.0.3</FileVersion>
</PropertyGroup>
<ItemGroup Label="Resources">
<None Include="$(SolutionDir)/Resources/**/*" CopyToOutputDirectory="PreserveNewest" Visible="false" />

View file

@ -19,13 +19,13 @@ namespace Dalamud.Game
private static extern int setsockopt(IntPtr socket, SocketOptionLevel level, SocketOptionName optName, ref IntPtr optVal, int optLen);
public WinSockHandlers() {
ws2SocketHook = Hook<SocketDelegate>.FromSymbol("ws2_32.dll", "socket", new SocketDelegate(OnSocket));
ws2SocketHook.Enable();
this.ws2SocketHook = Hook<SocketDelegate>.FromSymbol("ws2_32.dll", "socket", new SocketDelegate(OnSocket));
this.ws2SocketHook.Enable();
}
private IntPtr OnSocket(int af, int type, int protocol)
{
var socket = ws2SocketHook.Original(af, type, protocol);
var socket = this.ws2SocketHook.Original(af, type, protocol);
// IPPROTO_TCP
if (type == 1)