mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 22:27:45 +08:00
1.0.0 finalize
This commit is contained in:
parent
692a721840
commit
8bece453e3
@ -4,15 +4,8 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using System.IO;
|
|
||||||
using System.Reflection;
|
|
||||||
using MelonLoader;
|
using MelonLoader;
|
||||||
using Harmony;
|
|
||||||
using UnhollowerBaseLib.Runtime;
|
|
||||||
using UnhollowerRuntimeLib;
|
|
||||||
using UnhollowerBaseLib;
|
using UnhollowerBaseLib;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using UnhollowerBaseLib.Attributes;
|
|
||||||
|
|
||||||
namespace Explorer
|
namespace Explorer
|
||||||
{
|
{
|
||||||
@ -20,9 +13,9 @@ namespace Explorer
|
|||||||
{
|
{
|
||||||
// consts
|
// consts
|
||||||
|
|
||||||
public const string ID = "com.sinai.explorer";
|
public const string ID = "com.sinai.cppexplorer";
|
||||||
public const string NAME = "IL2CPP Runtime Explorer";
|
public const string NAME = "IL2CPP Runtime Explorer";
|
||||||
public const string VERSION = "0.91";
|
public const string VERSION = "1.0.0";
|
||||||
public const string AUTHOR = "Sinai";
|
public const string AUTHOR = "Sinai";
|
||||||
|
|
||||||
// fields
|
// fields
|
||||||
@ -65,32 +58,16 @@ namespace Explorer
|
|||||||
|
|
||||||
Instance = this;
|
Instance = this;
|
||||||
|
|
||||||
LoadMCS();
|
|
||||||
|
|
||||||
new MainMenu();
|
new MainMenu();
|
||||||
new WindowManager();
|
new WindowManager();
|
||||||
|
|
||||||
var harmony = HarmonyInstance.Create(ID);
|
//var harmony = HarmonyInstance.Create(ID);
|
||||||
harmony.PatchAll();
|
//harmony.PatchAll();
|
||||||
|
|
||||||
// done init
|
// done init
|
||||||
ShowMenu = true;
|
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!");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void OnLevelWasLoaded(int level)
|
public override void OnLevelWasLoaded(int level)
|
||||||
{
|
{
|
||||||
if (ScenePage.Instance != null)
|
if (ScenePage.Instance != null)
|
||||||
|
@ -10,12 +10,12 @@ using MelonLoader;
|
|||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("CppExplorer")]
|
[assembly: AssemblyTitle(CppExplorer.NAME)]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyCompany("")]
|
[assembly: AssemblyCompany(CppExplorer.AUTHOR)]
|
||||||
[assembly: AssemblyProduct("CppExplorer")]
|
[assembly: AssemblyProduct(CppExplorer.NAME)]
|
||||||
[assembly: AssemblyCopyright("By Sinai")]
|
[assembly: AssemblyCopyright("")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user