forked from akanyan/mu3-mods
feat: add 4 things
* DisableEncryption * LoadBoost * UnlockFrameRate * UnlockMasterDifficulty WIP, not fully reviewed/tested yet.
This commit is contained in:
7
DisableEncryption/DisableEncryption.csproj
Normal file
7
DisableEncryption/DisableEncryption.csproj
Normal file
@ -0,0 +1,7 @@
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<AssemblyName>Assembly-CSharp.DisableEncryption.mm</AssemblyName>
|
||||
<Description>Disable encryption</Description>
|
||||
</PropertyGroup>
|
||||
<Import Project="..\Mu3Mods.csproj" />
|
||||
</Project>
|
||||
28
DisableEncryption/MU3/patch_NetConfig.cs
Normal file
28
DisableEncryption/MU3/patch_NetConfig.cs
Normal file
@ -0,0 +1,28 @@
|
||||
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