mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-31 21:03:43 +01:00
Replace sig with manual offset for OML
This commit is contained in:
parent
382a1c0c96
commit
197abfeb0b
2 changed files with 2 additions and 4 deletions
|
|
@ -128,7 +128,7 @@ internal class FoolsManager : IDisposable, IServiceType
|
||||||
},
|
},
|
||||||
new()
|
new()
|
||||||
{
|
{
|
||||||
Name = "Good Vibes",
|
Name = "GoodVibes",
|
||||||
InternalName = "GoodVibesPlugin",
|
InternalName = "GoodVibesPlugin",
|
||||||
Description = "Shake things up with this vibe plugin!",
|
Description = "Shake things up with this vibe plugin!",
|
||||||
Author = "C h i r p",
|
Author = "C h i r p",
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ public class OopsMaybeLalafells : IFoolsPlugin
|
||||||
public OopsMaybeLalafells()
|
public OopsMaybeLalafells()
|
||||||
{
|
{
|
||||||
var scanner = Service<SigScanner>.Get();
|
var scanner = Service<SigScanner>.Get();
|
||||||
var addr = scanner.ScanText(SetupCharacterSig);
|
var addr = scanner.Module.BaseAddress + 0x0484F60;
|
||||||
SetupCharacterHook = Hook<SetupCharacterDelegate>.FromAddress(addr, SetupCharacterDetour);
|
SetupCharacterHook = Hook<SetupCharacterDelegate>.FromAddress(addr, SetupCharacterDetour);
|
||||||
SetupCharacterHook.Enable();
|
SetupCharacterHook.Enable();
|
||||||
RedrawAll();
|
RedrawAll();
|
||||||
|
|
@ -55,8 +55,6 @@ public class OopsMaybeLalafells : IFoolsPlugin
|
||||||
private readonly Random Rng = new();
|
private readonly Random Rng = new();
|
||||||
|
|
||||||
private readonly List<ushort> ReplaceIDs = new() { 84, 85, 86, 87, 88, 89, 90, 91, 257, 258, 581, 597, 744 };
|
private readonly List<ushort> ReplaceIDs = new() { 84, 85, 86, 87, 88, 89, 90, 91, 257, 258, 581, 597, 744 };
|
||||||
|
|
||||||
private const string SetupCharacterSig = "E8 ?? ?? ?? ?? 48 8B 0D ?? ?? ?? ?? 48 8B D7 E8 ?? ?? ?? ?? 48 8B CF E8 ?? ?? ?? ?? 48 8B C7";
|
|
||||||
private delegate char SetupCharacterDelegate(nint a1, nint a2);
|
private delegate char SetupCharacterDelegate(nint a1, nint a2);
|
||||||
private Hook<SetupCharacterDelegate> SetupCharacterHook = null!;
|
private Hook<SetupCharacterDelegate> SetupCharacterHook = null!;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue