mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
android enumerators don't have movenext??
This commit is contained in:
1 parent
d2142da25a
commit
dc4ca9f844
5 files changed
+20
-25
No files matched your search
+1
-1
@@ -29,7 +29,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2025.10.14" PrivateAssets="all" Condition="'$(Configuration)' == 'Release' Or '$(Configuration)' == 'Debug'" />
|
||||
<PackageReference Include="AmongUs.GameLibs.Android" Version="2025.6.10" PrivateAssets="all" Condition="'$(Configuration)' == 'Android'"/>
|
||||
<PackageReference Include="AmongUs.GameLibs.Android" Version="2025.9.9" PrivateAssets="all" Condition="'$(Configuration)' == 'Android'"/>
|
||||
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.1.0-rc.1"/>
|
||||
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.735" Private="false" ExcludeAssets="runtime;native"/>
|
||||
<PackageReference Include="JetBrains.Annotations" Version="2025.2.2" />
|
||||
|
||||
+2
-19
@@ -158,6 +158,7 @@ static class CheckOnlinePermissionsPatch
|
||||
}
|
||||
}
|
||||
|
||||
#if !ANDROID
|
||||
[HarmonyPatch]
|
||||
internal static class AuthTimeoutPatch
|
||||
{
|
||||
@@ -176,23 +177,6 @@ internal static class AuthTimeoutPatch
|
||||
|
||||
// If you don't patch this, you still need to wait for 5 s.
|
||||
// I have no idea why this is happening
|
||||
#if ANDROID
|
||||
[HarmonyPatch(typeof(AmongUsClient._CoJoinOnlinePublicGame_d__50), nameof(AmongUsClient._CoJoinOnlinePublicGame_d__50.MoveNext))]
|
||||
[HarmonyPrefix]
|
||||
public static void EnableUdpMatchmakingPrefix(AmongUsClient._CoJoinOnlinePublicGame_d__50 __instance)
|
||||
{
|
||||
// Skip to state 1, which just calls CoJoinOnlineGameDirect
|
||||
if (__instance.__1__state == 0 && !ServerManager.Instance.IsHttp)
|
||||
{
|
||||
__instance.__1__state = 1;
|
||||
|
||||
__instance.__8__1 = new()
|
||||
{
|
||||
matchmakerToken = string.Empty
|
||||
};
|
||||
}
|
||||
}
|
||||
#else
|
||||
[HarmonyPatch(typeof(AmongUsClient._CoJoinOnlinePublicGame_d__49), nameof(AmongUsClient._CoJoinOnlinePublicGame_d__49.MoveNext))]
|
||||
[HarmonyPrefix]
|
||||
public static void EnableUdpMatchmakingPrefix(AmongUsClient._CoJoinOnlinePublicGame_d__49 __instance)
|
||||
@@ -208,6 +192,5 @@ internal static class AuthTimeoutPatch
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
#endif
|
||||
@@ -46,6 +46,7 @@ internal static class AllMapIconsPatch
|
||||
}
|
||||
}
|
||||
|
||||
#if !ANDROID
|
||||
[HarmonyPatch(typeof(AmongUsClient._CoStartGameHost_d__28), nameof(AmongUsClient._CoStartGameHost_d__28.MoveNext))]
|
||||
public static class DleksPatch
|
||||
{
|
||||
@@ -73,6 +74,7 @@ public static class DleksPatch
|
||||
return false;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[HarmonyPatch(typeof(Vent), nameof(Vent.SetButtons))]
|
||||
public static class VentSetButtonsPatch
|
||||
|
||||
@@ -200,6 +200,17 @@ internal static class ExileControllerWrapUpPatch
|
||||
}
|
||||
}
|
||||
|
||||
#if ANDROID
|
||||
[HarmonyPatch(typeof(AirshipExileController), nameof(AirshipExileController.WrapUpAndSpawn))]
|
||||
private static class AirshipExileControllerPatch
|
||||
{
|
||||
public static void Postfix(AirshipExileController __instance)
|
||||
{
|
||||
try { WrapUpPostfix(__instance.initData.networkedPlayer); }
|
||||
finally { WrapUpFinalizer(); }
|
||||
}
|
||||
}
|
||||
#else
|
||||
[HarmonyPatch(typeof(AirshipExileController._WrapUpAndSpawn_d__11), nameof(AirshipExileController._WrapUpAndSpawn_d__11.MoveNext))]
|
||||
private static class AirshipExileControllerPatch
|
||||
{
|
||||
@@ -211,6 +222,7 @@ internal static class ExileControllerWrapUpPatch
|
||||
finally { WrapUpFinalizer(); }
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(PbExileController), nameof(PbExileController.PlayerSpin))]
|
||||
|
||||
@@ -15,15 +15,13 @@ namespace EHR;
|
||||
// Patch for non-host modded clients to ensure that the intro cutscene is shown correctly
|
||||
// and GameStates.InGame is set to true
|
||||
#if ANDROID
|
||||
[HarmonyPatch(typeof(IntroCutscene._ShowRole_d__40), nameof(IntroCutscene._ShowRole_d__40.MoveNext))]
|
||||
[HarmonyPatch(typeof(IntroCutscene), nameof(IntroCutscene))]
|
||||
static class ShowRoleMoveNextPatchAndroid
|
||||
{
|
||||
public static void Postfix(IntroCutscene._ShowRole_d__40 __instance, ref bool __result)
|
||||
public static void Postfix(IntroCutscene __instance)
|
||||
{
|
||||
if (__instance.__1__state != 1 || !__result) return;
|
||||
|
||||
GameStates.InGame = true;
|
||||
SetUpRoleTextPatch.Postfix(__instance.__4__this);
|
||||
SetUpRoleTextPatch.Postfix(__instance);
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user