This commit is contained in:
2025-09-19 22:35:28 -04:00
parent 628977263e
commit 8ac42d3fc5
5 changed files with 10 additions and 5 deletions

View File

@@ -38,6 +38,7 @@ namespace undead_universal_patch_il2cpp.Core.Config
public static ConfigEntry<bool> CustomPhoton;
public static ConfigEntry<bool> CustomMarquee;
public static ConfigEntry<bool> CustomKnownDlls;
public static ConfigEntry<bool> 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
{

View File

@@ -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<Dictionary<string, GameConfigurationAssetDTO>>(HTTPMethods.Get, RecNet.Service.API, "/api/undead/v1/gameconfigassets", Finished, OnFailed);
}

View File

@@ -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<CustomEmotes>();
UniversalPatchPlugin.Instance.AddComponent<CustomPhoton>();
if (ServerPatchesConfig.CustomKnownDlls.Value) UniversalPatchPlugin.Instance.AddComponent<CustomCheatManager>();
if (ServerPatchesConfig.CustomGameConfigurations.Value) UniversalPatchPlugin.Instance.AddComponent<CustomGameManager>();
}
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");

View File

@@ -1,4 +1,3 @@
using System;
using System.Collections.Generic;
using System.Reflection;
using HarmonyLib;

View File

@@ -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
{
}
}
}*/
}