mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 06:08:16 +08:00
manual unity libs no longer required for BepInEx
This commit is contained in:
parent
a80cef4c1d
commit
1e6bacb32b
@ -23,7 +23,6 @@
|
|||||||
| BIE 5.X | ✖️ n/a | ✅ [link](https://github.com/sinai-dev/UnityExplorer/releases/latest/download/UnityExplorer.BepInEx5.Mono.zip) |
|
| BIE 5.X | ✖️ n/a | ✅ [link](https://github.com/sinai-dev/UnityExplorer/releases/latest/download/UnityExplorer.BepInEx5.Mono.zip) |
|
||||||
|
|
||||||
1. Take the `UnityExplorer.BIE.[version].dll` file and put it in `BepInEx\plugins\`
|
1. Take the `UnityExplorer.BIE.[version].dll` file and put it in `BepInEx\plugins\`
|
||||||
2. In IL2CPP, you will need to download the [Unity libs](https://github.com/LavaGang/Unity-Runtime-Libraries) for the game's Unity version, create a folder `BepInEx\unity-libs\`, then extract the Unity libs into this folder.
|
|
||||||
|
|
||||||
<i>Note: BepInEx 6 is obtainable via [BepisBuilds](https://builds.bepis.io/projects/bepinex_be)</i>
|
<i>Note: BepInEx 6 is obtainable via [BepisBuilds](https://builds.bepis.io/projects/bepinex_be)</i>
|
||||||
|
|
||||||
|
@ -68,6 +68,8 @@ namespace UnityExplorer.Hooks
|
|||||||
|
|
||||||
// Set current hook cell
|
// Set current hook cell
|
||||||
|
|
||||||
|
public void OnCellBorrowed(HookCell cell) { }
|
||||||
|
|
||||||
public void SetCell(HookCell cell, int index)
|
public void SetCell(HookCell cell, int index)
|
||||||
{
|
{
|
||||||
if (index >= this.currentHooks.Count)
|
if (index >= this.currentHooks.Count)
|
||||||
@ -163,6 +165,36 @@ namespace UnityExplorer.Hooks
|
|||||||
Panel.AddHooksScrollPool.Refresh(true, true);
|
Panel.AddHooksScrollPool.Refresh(true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set eligable method cell
|
||||||
|
|
||||||
|
public void OnCellBorrowed(AddHookCell cell) { }
|
||||||
|
|
||||||
|
public void SetCell(AddHookCell cell, int index)
|
||||||
|
{
|
||||||
|
if (index >= this.filteredEligableMethods.Count)
|
||||||
|
{
|
||||||
|
cell.Disable();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
cell.CurrentDisplayedIndex = index;
|
||||||
|
var method = this.filteredEligableMethods[index];
|
||||||
|
|
||||||
|
cell.MethodNameLabel.text = HighlightMethod(method);
|
||||||
|
|
||||||
|
var sig = method.FullDescription();
|
||||||
|
if (hookedSignatures.Contains(sig))
|
||||||
|
{
|
||||||
|
cell.HookButton.Component.gameObject.SetActive(false);
|
||||||
|
cell.HookedLabel.gameObject.SetActive(true);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cell.HookButton.Component.gameObject.SetActive(true);
|
||||||
|
cell.HookedLabel.gameObject.SetActive(false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// ~~~~~~~~~~~ Hook source editor window ~~~~~~~~~~~
|
// ~~~~~~~~~~~ Hook source editor window ~~~~~~~~~~~
|
||||||
|
|
||||||
public void OnEditorInputChanged(string value)
|
public void OnEditorInputChanged(string value)
|
||||||
@ -191,40 +223,7 @@ namespace UnityExplorer.Hooks
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// OnBorrow methods not needed
|
// ~~~~~~~~~~ Method syntax highlighting
|
||||||
public void OnCellBorrowed(HookCell cell) { }
|
|
||||||
public void OnCellBorrowed(AddHookCell cell) { }
|
|
||||||
|
|
||||||
|
|
||||||
// Set eligable method cell
|
|
||||||
|
|
||||||
public void SetCell(AddHookCell cell, int index)
|
|
||||||
{
|
|
||||||
if (index >= this.filteredEligableMethods.Count)
|
|
||||||
{
|
|
||||||
cell.Disable();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
cell.CurrentDisplayedIndex = index;
|
|
||||||
var method = this.filteredEligableMethods[index];
|
|
||||||
|
|
||||||
cell.MethodNameLabel.text = HighlightMethod(method);
|
|
||||||
|
|
||||||
var sig = method.FullDescription();
|
|
||||||
if (hookedSignatures.Contains(sig))
|
|
||||||
{
|
|
||||||
cell.HookButton.Component.gameObject.SetActive(false);
|
|
||||||
cell.HookedLabel.gameObject.SetActive(true);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
cell.HookButton.Component.gameObject.SetActive(true);
|
|
||||||
cell.HookedLabel.gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// private static readonly string VOID_HIGHLIGHT = $"<color=#{SignatureHighlighter.keywordBlueHex}>void</color> ";
|
|
||||||
|
|
||||||
private static readonly Dictionary<string, string> highlightedMethods = new Dictionary<string, string>();
|
private static readonly Dictionary<string, string> highlightedMethods = new Dictionary<string, string>();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user