-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from PassiveModding/feature/dawntrail
Feature/dawntrail
- Loading branch information
Showing
163 changed files
with
13,823 additions
and
4,705 deletions.
There are no files selected for viewing
Submodule FFXIVClientStructs
updated
1127 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using Dalamud.Game; | ||
using Dalamud.Hooking; | ||
using Dalamud.Utility.Signatures; | ||
using InteropGenerator.Runtime; | ||
|
||
namespace Meddle.Plugin; | ||
|
||
public class InteropService(ISigScanner sigScanner) : IDisposable | ||
{ | ||
/// <summary> | ||
/// Used to identify if ClientStructs have been resolved. | ||
/// </summary> | ||
public bool IsResolved { get; private set; } | ||
|
||
public void Initialize() | ||
{ | ||
if (IsResolved) | ||
return; | ||
FFXIVClientStructs.Interop.Generated.Addresses.Register(); | ||
//Addresses.Register(); | ||
Resolver.GetInstance.Setup(sigScanner.SearchBase); | ||
Resolver.GetInstance.Resolve(); | ||
IsResolved = true; | ||
} | ||
|
||
// Client::System::Framework::Framework_Tick | ||
[Signature("40 53 48 83 EC 20 FF 81 ?? ?? ?? ?? 48 8B D9 48 8D 4C 24", DetourName = nameof(PostTickDetour))] | ||
private Hook<PostTickDelegate> postTickHook = null!; | ||
private delegate bool PostTickDelegate(nint a1); | ||
|
||
private bool PostTickDetour(nint a1) | ||
{ | ||
var ret = postTickHook.Original(a1); | ||
return ret; | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
postTickHook?.Dispose(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.