mirror of
https://github.com/GrahamKracker/UnityExplorer.git
synced 2025-07-10 14:03:30 +08:00
REPL console
This commit is contained in:
@ -65,32 +65,31 @@ namespace Explorer
|
||||
|
||||
Instance = this;
|
||||
|
||||
LoadMCS();
|
||||
|
||||
new MainMenu();
|
||||
new WindowManager();
|
||||
|
||||
//LoadMCS();
|
||||
|
||||
//// init debugging hooks
|
||||
//var harmony = HarmonyInstance.Create(ID);
|
||||
//harmony.PatchAll();
|
||||
var harmony = HarmonyInstance.Create(ID);
|
||||
harmony.PatchAll();
|
||||
|
||||
// done init
|
||||
ShowMenu = true;
|
||||
}
|
||||
|
||||
//private void LoadMCS()
|
||||
//{
|
||||
// var mcsPath = @"Mods\mcs.dll";
|
||||
// if (File.Exists(mcsPath))
|
||||
// {
|
||||
// Assembly.Load(File.ReadAllBytes(mcsPath));
|
||||
// MelonLogger.Log("Loaded mcs.dll");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// MelonLogger.LogError("Could not find mcs.dll!");
|
||||
// }
|
||||
//}
|
||||
private void LoadMCS()
|
||||
{
|
||||
var mcsPath = @"Mods\mcs.dll";
|
||||
if (File.Exists(mcsPath))
|
||||
{
|
||||
Assembly.Load(File.ReadAllBytes(mcsPath));
|
||||
MelonLogger.Log("Loaded mcs.dll");
|
||||
}
|
||||
else
|
||||
{
|
||||
MelonLogger.LogError("Could not find mcs.dll!");
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnLevelWasLoaded(int level)
|
||||
{
|
||||
|
Reference in New Issue
Block a user