mirror of https://github.com/hykilpikonna/AquaDX
[F] Encrypt and Decrypt hook run without enabled in config
parent
9a6e9c4660
commit
6ad980d471
|
@ -29,6 +29,13 @@
|
||||||
<DebugSymbols>false</DebugSymbols>
|
<DebugSymbols>false</DebugSymbols>
|
||||||
<PlatformTarget>x64</PlatformTarget>
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'SDGA145|AnyCPU' ">
|
||||||
|
<OutputPath>Output\</OutputPath>
|
||||||
|
<DefineConstants>SDGA145</DefineConstants>
|
||||||
|
<Optimize>true</Optimize>
|
||||||
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="0Harmony">
|
<Reference Include="0Harmony">
|
||||||
<HintPath>Libs\0Harmony.dll</HintPath>
|
<HintPath>Libs\0Harmony.dll</HintPath>
|
||||||
|
@ -301,7 +308,7 @@
|
||||||
<None Include="App.config" />
|
<None Include="App.config" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="AquaMai.toml" />
|
<None Include="AquaMai.toml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -25,8 +25,13 @@ public class RemoveEncryption
|
||||||
|
|
||||||
public static bool Prefix(byte[] data, ref byte[] __result)
|
public static bool Prefix(byte[] data, ref byte[] __result)
|
||||||
{
|
{
|
||||||
__result = data;
|
if (AquaMai.AppConfig.Fix.RemoveEncryption)
|
||||||
return false;
|
{
|
||||||
|
__result = data;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,8 +45,13 @@ public class RemoveEncryption
|
||||||
|
|
||||||
public static bool Prefix(byte[] encryptData, ref byte[] __result)
|
public static bool Prefix(byte[] encryptData, ref byte[] __result)
|
||||||
{
|
{
|
||||||
__result = encryptData;
|
if (AquaMai.AppConfig.Fix.RemoveEncryption)
|
||||||
return false;
|
{
|
||||||
|
__result = encryptData;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue