From 8ac42d3fc506e2e6c9d9ecff1c47712cdf9cd9a5 Mon Sep 17 00:00:00 2001 From: zombieb Date: Fri, 19 Sep 2025 22:35:28 -0400 Subject: [PATCH] asdf --- Core/Config/Config.cs | 2 ++ .../CustomRecNet/CustomGameManager/CustomGameManager.cs | 4 ++-- Core/Init.cs | 4 ++++ Patches/GameManager/GameConfigurator.cs | 1 - Patches/Internals/LockerroomOOBEFlow.cs | 4 ++-- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Core/Config/Config.cs b/Core/Config/Config.cs index 127b5fe..d830e03 100644 --- a/Core/Config/Config.cs +++ b/Core/Config/Config.cs @@ -38,6 +38,7 @@ namespace undead_universal_patch_il2cpp.Core.Config public static ConfigEntry CustomPhoton; public static ConfigEntry CustomMarquee; public static ConfigEntry CustomKnownDlls; + public static ConfigEntry CustomGameConfigurations; } public static class ServerPatchesConfigDefaults { @@ -45,6 +46,7 @@ namespace undead_universal_patch_il2cpp.Core.Config public static bool CustomPhoton = false; public static bool CustomMarquee = false; public static bool CustomKnownDlls = false; + public static bool CustomGameConfigurations = false; } public static class GameManagerConfig { diff --git a/Core/Content/CustomRecNet/CustomGameManager/CustomGameManager.cs b/Core/Content/CustomRecNet/CustomGameManager/CustomGameManager.cs index e5bf658..2f33782 100644 --- a/Core/Content/CustomRecNet/CustomGameManager/CustomGameManager.cs +++ b/Core/Content/CustomRecNet/CustomGameManager/CustomGameManager.cs @@ -11,7 +11,7 @@ public class CustomGameManager : MonoBehaviour { public void Start() { - RecNetInteractions.postAuthenticationActions.Add(DownlaodGameConfigAssets); + RecNetInteractions.postAuthenticationActions.Add(DownloadGameConfigAssets); } public void OnFailed([Optional] HTTPResponse res) @@ -24,7 +24,7 @@ public class CustomGameManager : MonoBehaviour GameConfiguratorPatch.gameConfig = configs; } - public void DownlaodGameConfigAssets() + public void DownloadGameConfigAssets() { RecNetInteractions.SendRequest>(HTTPMethods.Get, RecNet.Service.API, "/api/undead/v1/gameconfigassets", Finished, OnFailed); } diff --git a/Core/Init.cs b/Core/Init.cs index 21dc13d..353374b 100644 --- a/Core/Init.cs +++ b/Core/Init.cs @@ -7,6 +7,7 @@ using Mapster; using undead_universal_patch_il2cpp.Core.Config; using undead_universal_patch_il2cpp.Core.Content.CustomRecNet.CheatManager; using undead_universal_patch_il2cpp.Core.Content.CustomRecNet.CustomEmotes; +using undead_universal_patch_il2cpp.Core.Content.CustomRecNet.CustomGameManager; using undead_universal_patch_il2cpp.Core.Content.CustomRecNet.CustomPhoton; using undead_universal_patch_il2cpp.Core.Content.UndeadGameManager; using undead_universal_patch_il2cpp.Patches.Video; @@ -64,6 +65,7 @@ public class Initialization if (ServerPatchesConfig.CustomEmotes.Value) UniversalPatchPlugin.Instance.AddComponent(); UniversalPatchPlugin.Instance.AddComponent(); if (ServerPatchesConfig.CustomKnownDlls.Value) UniversalPatchPlugin.Instance.AddComponent(); + if (ServerPatchesConfig.CustomGameConfigurations.Value) UniversalPatchPlugin.Instance.AddComponent(); } private static void FetchConfigurations() @@ -99,6 +101,8 @@ public class Initialization "Set custom text on the ^reccenter theater marquee."); ServerPatchesConfig.CustomKnownDlls = UniversalPatchPlugin.Instance.Config.Bind("ServerPatches", "CustomKnownDlls", ServerPatchesConfigDefaults.CustomKnownDlls, "Add items to the list of known DLLs."); + ServerPatchesConfig.CustomGameConfigurations = UniversalPatchPlugin.Instance.Config.Bind("ServerPatches", "CustomGameConfigurations", ServerPatchesConfigDefaults.CustomGameConfigurations, + "Custom GameAssetConfigurations."); GameManagerConfig.AnyGameFreeSpawn = UniversalPatchPlugin.Instance.Config.Bind("GameManagerConfig", "AnyGameFreeSpawn", GameManagerConfigDefaults.AnyGameFreeSpawn, $"Spawn in any valid player spawnpoint in specified games. See README.md"); diff --git a/Patches/GameManager/GameConfigurator.cs b/Patches/GameManager/GameConfigurator.cs index 0904150..4a58fd3 100644 --- a/Patches/GameManager/GameConfigurator.cs +++ b/Patches/GameManager/GameConfigurator.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Reflection; using HarmonyLib; diff --git a/Patches/Internals/LockerroomOOBEFlow.cs b/Patches/Internals/LockerroomOOBEFlow.cs index c0be358..16e7161 100644 --- a/Patches/Internals/LockerroomOOBEFlow.cs +++ b/Patches/Internals/LockerroomOOBEFlow.cs @@ -10,7 +10,7 @@ using UnityEngine; namespace undead_universal_patch_il2cpp.Patches.Internals { - [HarmonyPatch] + /*[HarmonyPatch] public class LockerroomOOBEFlow { static PatchTypesResult patchResult = Util.PreparePatchTypes( @@ -26,5 +26,5 @@ namespace undead_universal_patch_il2cpp.Patches.Internals { } - } + }*/ }