mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-26 04:22:38 +00:00
[+] Basic fix
This commit is contained in:
parent
64f3a2db58
commit
0833cd8a9b
1
AquaMai/.gitignore
vendored
1
AquaMai/.gitignore
vendored
@ -373,4 +373,5 @@ MigrationBackup/
|
|||||||
Output
|
Output
|
||||||
.idea
|
.idea
|
||||||
Libs/Assembly-CSharp.dll
|
Libs/Assembly-CSharp.dll
|
||||||
|
Libs/AMDaemon.NET.dll
|
||||||
packages
|
packages
|
||||||
@ -275,6 +275,7 @@
|
|||||||
<Compile Include="Cheat\UnlockUtage.cs" />
|
<Compile Include="Cheat\UnlockUtage.cs" />
|
||||||
<Compile Include="Config.cs" />
|
<Compile Include="Config.cs" />
|
||||||
<Compile Include="Fix\BasicFix.cs" />
|
<Compile Include="Fix\BasicFix.cs" />
|
||||||
|
<Compile Include="Fix\DisableReboot.cs" />
|
||||||
<Compile Include="Fix\FixCharaCrash.cs" />
|
<Compile Include="Fix\FixCharaCrash.cs" />
|
||||||
<Compile Include="Fix\RemoveEncryption.cs" />
|
<Compile Include="Fix\RemoveEncryption.cs" />
|
||||||
<Compile Include="Fix\SkipVersionCheck.cs" />
|
<Compile Include="Fix\SkipVersionCheck.cs" />
|
||||||
@ -283,7 +284,6 @@
|
|||||||
<Compile Include="Main.cs" />
|
<Compile Include="Main.cs" />
|
||||||
<Compile Include="UX\CustomVersionString.cs" />
|
<Compile Include="UX\CustomVersionString.cs" />
|
||||||
<Compile Include="UX\DemoMaster.cs" />
|
<Compile Include="UX\DemoMaster.cs" />
|
||||||
<Compile Include="UX\DisableReboot.cs" />
|
|
||||||
<Compile Include="UX\ExtendTimer.cs" />
|
<Compile Include="UX\ExtendTimer.cs" />
|
||||||
<Compile Include="UX\ImmediateSave.cs" />
|
<Compile Include="UX\ImmediateSave.cs" />
|
||||||
<Compile Include="UX\LoadJacketPng.cs" />
|
<Compile Include="UX\LoadJacketPng.cs" />
|
||||||
|
|||||||
@ -3,15 +3,13 @@ using AMDaemon.Allnet;
|
|||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
using Manager;
|
using Manager;
|
||||||
using Manager.Operation;
|
using Manager.Operation;
|
||||||
using IniFile = MAI2System.IniFile;
|
|
||||||
using Network = AMDaemon.Network;
|
|
||||||
|
|
||||||
namespace AquaMai.Fix;
|
namespace AquaMai.Fix;
|
||||||
|
|
||||||
public class BasicFix
|
public class BasicFix
|
||||||
{
|
{
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
[HarmonyPatch(typeof(IniFile), "clear")]
|
[HarmonyPatch(typeof(MAI2System.IniFile), "clear")]
|
||||||
private static bool PreIniFileClear()
|
private static bool PreIniFileClear()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
@ -26,7 +24,7 @@ public class BasicFix
|
|||||||
}
|
}
|
||||||
|
|
||||||
[HarmonyPrefix]
|
[HarmonyPrefix]
|
||||||
[HarmonyPatch(typeof(Network), "IsLanAvailable", MethodType.Getter)]
|
[HarmonyPatch(typeof(AMDaemon.Network), "IsLanAvailable", MethodType.Getter)]
|
||||||
private static bool PreIsLanAvailable(ref bool __result)
|
private static bool PreIsLanAvailable(ref bool __result)
|
||||||
{
|
{
|
||||||
__result = false;
|
__result = false;
|
||||||
@ -42,4 +40,12 @@ public class BasicFix
|
|||||||
____operationData.ServerUri = Auth.GameServerUri;
|
____operationData.ServerUri = Auth.GameServerUri;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(Manager.Credit), "IsFreePlay")]
|
||||||
|
private static bool PreIsFreePlay(ref bool __result)
|
||||||
|
{
|
||||||
|
__result = true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
using Manager.Operation;
|
using Manager.Operation;
|
||||||
|
|
||||||
namespace AquaMai.UX
|
namespace AquaMai.Fix
|
||||||
{
|
{
|
||||||
public class DisableReboot
|
public class DisableReboot
|
||||||
{
|
{
|
||||||
@ -66,5 +66,21 @@ namespace AquaMai.UX
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(ClosingTimer), "IsShowRemainingMinutes")]
|
||||||
|
public static bool IsShowRemainingMinutes(ref bool __result)
|
||||||
|
{
|
||||||
|
__result = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(ClosingTimer), "IsClosed")]
|
||||||
|
public static bool IsClosed(ref bool __result)
|
||||||
|
{
|
||||||
|
__result = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user