mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-15 19:47:27 +08:00
[F] Encrypt and Decrypt hook run without enabled in config
This commit is contained in:
@@ -29,6 +29,13 @@
|
||||
<DebugSymbols>false</DebugSymbols>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'SDGA145|AnyCPU' ">
|
||||
<OutputPath>Output\</OutputPath>
|
||||
<DefineConstants>SDGA145</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="0Harmony">
|
||||
<HintPath>Libs\0Harmony.dll</HintPath>
|
||||
@@ -301,7 +308,7 @@
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="AquaMai.toml" />
|
||||
<None Include="AquaMai.toml" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
|
||||
@@ -24,10 +24,15 @@ public class RemoveEncryption
|
||||
}
|
||||
|
||||
public static bool Prefix(byte[] data, ref byte[] __result)
|
||||
{
|
||||
if (AquaMai.AppConfig.Fix.RemoveEncryption)
|
||||
{
|
||||
__result = data;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch]
|
||||
@@ -39,9 +44,14 @@ public class RemoveEncryption
|
||||
}
|
||||
|
||||
public static bool Prefix(byte[] encryptData, ref byte[] __result)
|
||||
{
|
||||
if (AquaMai.AppConfig.Fix.RemoveEncryption)
|
||||
{
|
||||
__result = encryptData;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user