Initial commit
This commit is contained in:
44
PluginInit.cs
Normal file
44
PluginInit.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user