Skip to content

Commit

Permalink
2023.6.13
Browse files Browse the repository at this point in the history
  • Loading branch information
js6pak committed Jun 13, 2023
1 parent f729d44 commit 359b9af
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
9 changes: 9 additions & 0 deletions Reactor.RemoveAccounts/CosmeticPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,13 @@ public static void Prefix(AccountTab __instance)
__instance.transform.FindChild("AccountWindow").gameObject.SetActive(false);
}
}

[HarmonyPatch(typeof(AccountManager), nameof(AccountManager.Awake))]
public static class DisableAccountManager
{
public static void Prefix(AccountManager __instance)
{
__instance.gameObject.SetActive(false);
}
}
}
3 changes: 2 additions & 1 deletion Reactor.RemoveAccounts/FunctionalPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public static class InitializePlatformInterfacePatch

public static bool Prefix(EOSManager __instance)
{
new DestroyableSingleton<EOSManager>(__instance.Pointer).Awake();
DestroyableSingleton<EOSManager>._instance = __instance;
if (__instance.DontDestroy) __instance.gameObject.DontDestroyOnLoad();

__instance.platformInitialized = true;
_localUserIdProperty?.SetValue(null, new EpicAccountId());
Expand Down
4 changes: 2 additions & 2 deletions Reactor.RemoveAccounts/Reactor.RemoveAccounts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

<ItemGroup>
<PackageReference Include="Reactor" Version="2.0.0" />
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.664" />
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2022.12.14" PrivateAssets="all" />
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.668" Private="false" ExcludeAssets="runtime;native" />
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2023.6.13" PrivateAssets="all" />

<PackageReference Include="BepInEx.AutoPlugin" Version="1.1.0" PrivateAssets="all" />
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.0.1" PrivateAssets="all" />
Expand Down

0 comments on commit 359b9af

Please sign in to comment.