29 lines
851 B
C#
29 lines
851 B
C#
using HarmonyLib;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Text;
|
|
using undead_universal_patch_il2cpp.Core;
|
|
using undead_universal_patch_il2cpp.Core.Content.CustomRecNet;
|
|
|
|
namespace undead_universal_patch_il2cpp.Patches.Internals;
|
|
|
|
[HarmonyPatch]
|
|
public class SteamPlatformManagerEvent
|
|
{
|
|
static PatchTypesResult typesResult = Util.PreparePatchTypes(
|
|
"On SteamPlatformManager.Initialize",
|
|
"SteamPlatformManager",
|
|
"Initialize"
|
|
);
|
|
|
|
static MethodBase TargetMethod() => typesResult.Method;
|
|
static bool Prepare() => typesResult.Success;
|
|
|
|
static void Postfix()
|
|
{
|
|
UniversalPatchPlugin.Log.LogInfo("Running post-steam platform initialize actions");
|
|
foreach (var action in RecNetInteractions.onPlatformInitialize) action();
|
|
}
|
|
} |