Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
Fixed Warning screen return
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Mar 19, 2022
1 parent 1f558b5 commit b6a6a27
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!--Development Variables-->
<PropertyGroup>
<Version>1.7.5</Version>
<Version>1.7.6</Version>
<HarmonyVersion>2.0.4</HarmonyVersion>
<BUTRSharedVersion>2.0.0.78</BUTRSharedVersion>
<BUTRModuleManagerVersion>3.0.94</BUTRModuleManagerVersion>
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
---------------------------------------------------------------------------------------------------
Version: 1.7.6
Game Versions: e1.5.0,e1.5.1,e1.5.2,e1.5.3,e1.5.4,e1.5.5,e1.5.6,e1.5.7,e1.5.8,e1.5.9,e1.5.10,e1.6.0,e1.6.1,e1.6.2,e1.6.3,e1.6.4,e1.6.5,e1.7.0,e1.7.1,e1.7.2
* Fixed Warning screen return
---------------------------------------------------------------------------------------------------
Version: 1.7.5
Game Versions: e1.5.0,e1.5.1,e1.5.2,e1.5.3,e1.5.4,e1.5.5,e1.5.6,e1.5.7,e1.5.8,e1.5.9,e1.5.10,e1.6.0,e1.6.1,e1.6.2,e1.6.3,e1.6.4,e1.6.5,e1.7.0,e1.7.1,e1.7.2
* Fixed additional crash at launch when an incompatible module is used
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ public static bool Enable(Harmony harmony)
var res1 = harmony.TryPatch(
AccessTools2.Method(LauncherConfirmStartVMType!, "EnableWith"),
prefix: AccessTools2.Method(typeof(LauncherConfirmStartVMPatch), nameof(EnableWithPrefix)));
if (!res1) return false;
if (!res1)
{
var res2 = harmony.TryPatch(
AccessTools2.Method(LauncherConfirmStartVMType!, "EnableWith"),
prefix: AccessTools2.Method(typeof(LauncherConfirmStartVMPatch), nameof(EnableWithPrefix2)));
if (!res2)
return false;
}

return true;
}
Expand All @@ -27,5 +34,10 @@ public static bool EnableWithPrefix(Action? ___onConfirm)
___onConfirm?.Invoke();
return false;
}
public static bool EnableWithPrefix2(Action? ____onConfirm)
{
____onConfirm?.Invoke();
return false;
}
}
}

0 comments on commit b6a6a27

Please sign in to comment.