REPL console

This commit is contained in:
sinaioutlander
2020-08-07 23:45:09 +10:00
parent df3b41657e
commit 28ba5af6fa
17 changed files with 424 additions and 412 deletions

View File

@ -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)
{