Upgraded to Net 7.0

This commit is contained in:
hondacrx
2023-01-20 09:25:12 -05:00
parent 3b890c1d67
commit 9a2fb7e2b2
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -5,8 +5,8 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.21.6" /> <PackageReference Include="Google.Protobuf" Version="3.21.12" />
<PackageReference Include="MySqlConnector" Version="2.1.12" /> <PackageReference Include="MySqlConnector" Version="2.2.5" />
</ItemGroup> </ItemGroup>
</Project> </Project>
@@ -205,8 +205,8 @@ public static partial class Detour
bytes.AddRange(BitConverter.GetBytes(vertBase)); bytes.AddRange(BitConverter.GetBytes(vertBase));
bytes.AddRange(BitConverter.GetBytes(triBase)); bytes.AddRange(BitConverter.GetBytes(triBase));
bytes.AddRange(BitConverter.GetBytes(vertCount)); bytes.Add(vertCount);
bytes.AddRange(BitConverter.GetBytes(triCount)); bytes.Add(triCount);
return bytes.ToArray(); return bytes.ToArray();
} }
+3 -3
View File
@@ -81,7 +81,7 @@ namespace Game
Request.Function1[1] = 0x000218C0; // 0x00400000 + 0x000218C0 SFileGetFileSize Request.Function1[1] = 0x000218C0; // 0x00400000 + 0x000218C0 SFileGetFileSize
Request.Function1[2] = 0x00022530; // 0x00400000 + 0x00022530 SFileReadFile Request.Function1[2] = 0x00022530; // 0x00400000 + 0x00022530 SFileReadFile
Request.Function1[3] = 0x00022910; // 0x00400000 + 0x00022910 SFileCloseFile Request.Function1[3] = 0x00022910; // 0x00400000 + 0x00022910 SFileCloseFile
Request.CheckSumm1 = BuildChecksum(BitConverter.GetBytes(Request.Unk1), 20); Request.CheckSumm1 = BuildChecksum(new byte[] { Request.Unk1 }, 20);
Request.Command2 = WardenOpcodes.SmsgModuleInitialize; Request.Command2 = WardenOpcodes.SmsgModuleInitialize;
Request.Size2 = 8; Request.Size2 = 8;
@@ -90,7 +90,7 @@ namespace Game
Request.String_library2 = 0; Request.String_library2 = 0;
Request.Function2 = 0x00419D40; // 0x00400000 + 0x00419D40 FrameScript::GetText Request.Function2 = 0x00419D40; // 0x00400000 + 0x00419D40 FrameScript::GetText
Request.Function2_set = 1; Request.Function2_set = 1;
Request.CheckSumm2 = BuildChecksum(BitConverter.GetBytes(Request.Unk2), 8); Request.CheckSumm2 = BuildChecksum(new byte[] { Request.Unk2 }, 8);
Request.Command3 = WardenOpcodes.SmsgModuleInitialize; Request.Command3 = WardenOpcodes.SmsgModuleInitialize;
Request.Size3 = 8; Request.Size3 = 8;
@@ -99,7 +99,7 @@ namespace Game
Request.String_library3 = 0; Request.String_library3 = 0;
Request.Function3 = 0x0046AE20; // 0x00400000 + 0x0046AE20 PerformanceCounter Request.Function3 = 0x0046AE20; // 0x00400000 + 0x0046AE20 PerformanceCounter
Request.Function3_set = 1; Request.Function3_set = 1;
Request.CheckSumm3 = BuildChecksum(BitConverter.GetBytes(Request.Unk5), 8); Request.CheckSumm3 = BuildChecksum(new byte[] { Request.Unk5 }, 8);
Warden3DataServer packet = new(); Warden3DataServer packet = new();
packet.Data = EncryptData(Request); packet.Data = EncryptData(Request);
+1 -1
View File
@@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<OutputPath>../../Build/$(Configuration)/$(Platform)</OutputPath> <OutputPath>../../Build/$(Configuration)/$(Platform)</OutputPath>
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net7.0</TargetFramework>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors> <TreatWarningsAsErrors>False</TreatWarningsAsErrors>
<AppendTargetFrameworkToOutputPath>False</AppendTargetFrameworkToOutputPath> <AppendTargetFrameworkToOutputPath>False</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>False</AppendRuntimeIdentifierToOutputPath> <AppendRuntimeIdentifierToOutputPath>False</AppendRuntimeIdentifierToOutputPath>