Initial commit

This commit is contained in:
2026-05-30 18:28:51 -04:00
commit d78e8d0910
11 changed files with 1337 additions and 0 deletions

44
PluginInit.cs Normal file
View 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