forked from zombieb/undead-universal-patch-il2cpp
haha forgot to push,,,
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
using System.Reflection;
|
||||
using HarmonyLib;
|
||||
using undead_universal_patch_il2cpp.Core;
|
||||
|
||||
namespace undead_universal_patch_il2cpp.Patches.Photon;
|
||||
|
||||
[HarmonyPatch]
|
||||
public class NameserverTest
|
||||
{
|
||||
static PatchTypesResult patchTypesResult = Util.PreparePatchTypes(
|
||||
"Photon nameserver test",
|
||||
"NetworkingPeer",
|
||||
"GetNameServerAddress"
|
||||
);
|
||||
|
||||
static bool Prepare() => patchTypesResult.Success;
|
||||
static MethodBase TargetMethod() => patchTypesResult.Method;
|
||||
}
|
||||
@@ -37,7 +37,7 @@ public class PhotonPatch
|
||||
PropertyInfo voiceAppIdProperty = serverSettingsType.GetRuntimeProperty("VoiceAppID");
|
||||
|
||||
Util.ConditionalDebug($"New Photon AppID: '{photonConfig.AppID}'");
|
||||
Util.ConditionalDebug($"New Photon AppID: '{photonConfig.VoiceAppID}'");
|
||||
Util.ConditionalDebug($"New Photon VoiceAppID: '{photonConfig.VoiceAppID}'");
|
||||
appIdProperty.SetValue(serverSettings, photonConfig.AppID);
|
||||
voiceAppIdProperty.SetValue(serverSettings, photonConfig.VoiceAppID);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user