mirror of
https://github.com/djdevin/recnet-plugin.git
synced 2026-09-08 22:51:34 -07:00
fix room loading + metadata changes allowed
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
using HarmonyLib;
|
||||||
|
|
||||||
|
[HarmonyPatch(typeof(JAPJPGNBMNM), "JOKECJKBJGD")]
|
||||||
|
public static class PromisePatch
|
||||||
|
{
|
||||||
|
public static bool Prefix(out HPHDJAFFHCN<JAPJPGNBMNM.AOFCCEACNNA> __result)
|
||||||
|
{
|
||||||
|
var result = JAPJPGNBMNM.AOFCCEACNNA.JGIHNLEFJEL();
|
||||||
|
var promise = HAAHJPGNIMD.NMOOLKAJDOC(result);
|
||||||
|
__result = promise;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -46,11 +46,14 @@ public class Plugin : BasePlugin
|
|||||||
|
|
||||||
private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
|
||||||
{
|
{
|
||||||
var cheatMgr = GameObject.Find("GameRoot/(Startup)(Clone)/Core Systems/[CheatManager]");
|
if (scene.name != "TitleScreen")
|
||||||
if (cheatMgr != null)
|
|
||||||
{
|
{
|
||||||
GameObject.Destroy(cheatMgr);
|
var cheatMgr = GameObject.Find("GameRoot/(Startup)(Clone)/Core Systems/[CheatManager]");
|
||||||
Log.LogInfo("cheatmanager destroyed");
|
if (cheatMgr != null)
|
||||||
|
{
|
||||||
|
GameObject.Destroy(cheatMgr);
|
||||||
|
Log.LogInfo("cheatmanager destroyed");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user