Files
UndeadUniversalPatch/PluginInit.cs
2026-05-30 18:28:51 -04:00

44 lines
1.2 KiB
C#

// Undead Universal Patch - for patching Rec Room builds
// Copyright (C) 2026 proxnet.dev (@zombieb)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY
using BepInEx;
#if NET35
using BepInEx.Unity.Mono;
#else
using BepInEx.Unity.IL2CPP;
#endif
using UndeadUniversalPatch.Core;
namespace UndeadUniversalPatch;
#if NET6_0
[BepInPlugin(PluginInfo.Uuid, PluginInfo.DisplayName, PluginInfo.Version)]
public class Il2CppPluginInit : BasePlugin
{
public override void Load()
{
Log.LogInfo($"Initialized via BepInEx on IL2CPP.");
Init.Startup(false);
}
}
#else
[BepInPlugin(PluginInfo.Uuid, PluginInfo.DisplayName, PluginInfo.Version)]
public class MonoPluginInit : BaseUnityPlugin
{
public new bool enabled = true;
private void Awake()
{
Logger.LogInfo($"Initialized via BepInEx on Mono.");
Init.Startup(true);
}
}
#endif