forked from akanyan/mu3-mods
feat!: rename and reorganize
This commit is contained in:
8
Fixes/DisableEncryption/DisableEncryption.csproj
Normal file
8
Fixes/DisableEncryption/DisableEncryption.csproj
Normal file
@ -0,0 +1,8 @@
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<AssemblyName>Assembly-CSharp.DisableEncryption.mm</AssemblyName>
|
||||
<Description>Disable encryption</Description>
|
||||
<OutCategory>fixes</OutCategory>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\..\Mu3Mods.csproj" />
|
||||
</Project>
|
27
Fixes/DisableEncryption/MU3/patch_NetConfig.cs
Normal file
27
Fixes/DisableEncryption/MU3/patch_NetConfig.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using MonoMod;
|
||||
|
||||
namespace MU3;
|
||||
|
||||
[MonoModPatch("global::MU3.NetConfig")]
|
||||
public static class patch_NetConfig {
|
||||
private static int encryptVersion_;
|
||||
private static bool useTLS_;
|
||||
|
||||
public static int EncryptVersion {
|
||||
get {
|
||||
return 0;
|
||||
}
|
||||
set {
|
||||
encryptVersion_ = 0;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool UseTLS {
|
||||
get {
|
||||
return false;
|
||||
}
|
||||
set {
|
||||
useTLS_ = false;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user