mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-21 07:17:53 +01:00
Further fixes.
This commit is contained in:
parent
674dc03f46
commit
e66ca7c580
6 changed files with 11 additions and 11 deletions
|
|
@ -14,11 +14,11 @@ public unsafe class CharacterUtility : IDisposable
|
|||
// Only required for migration anymore.
|
||||
public delegate void LoadResources( Structs.CharacterUtility* address );
|
||||
|
||||
[Signature( "E8 ?? ?? ?? 00 48 8D 8E ?? ?? 00 00 E8 ?? ?? ?? 00 33 D2" )]
|
||||
public readonly LoadResources? LoadCharacterResourcesFunc;
|
||||
[Signature( "E8 ?? ?? ?? ?? 48 8D 8F ?? ?? ?? ?? E8 ?? ?? ?? ?? 33 D2 45 33 C0" )]
|
||||
public readonly LoadResources LoadCharacterResourcesFunc = null!;
|
||||
|
||||
public void LoadCharacterResources()
|
||||
=> LoadCharacterResourcesFunc?.Invoke( Address );
|
||||
=> LoadCharacterResourcesFunc.Invoke( Address );
|
||||
|
||||
public Structs.CharacterUtility* Address
|
||||
=> *_characterUtilityAddress;
|
||||
|
|
|
|||
|
|
@ -200,13 +200,13 @@ public unsafe partial class PathResolver
|
|||
_animationLoadCollection = last;
|
||||
}
|
||||
|
||||
[Signature( "E8 ?? ?? ?? ?? 44 84 BB", DetourName = nameof( SomeOtherAvfxDetour ) )]
|
||||
[Signature( "E8 ?? ?? ?? ?? 44 84 A3", DetourName = nameof( SomeOtherAvfxDetour ) )]
|
||||
private readonly Hook< CharacterBaseNoArgumentDelegate > _someOtherAvfxHook = null!;
|
||||
|
||||
private void SomeOtherAvfxDetour( IntPtr unk )
|
||||
{
|
||||
var last = _animationLoadCollection;
|
||||
var gameObject = ( GameObject* )( unk - 0x8B0 );
|
||||
var gameObject = ( GameObject* )( unk - 0x8D0 );
|
||||
_animationLoadCollection = IdentifyCollection( gameObject );
|
||||
_someOtherAvfxHook.Original( unk );
|
||||
_animationLoadCollection = last;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
"RepoUrl": "https://github.com/xivdev/Penumbra",
|
||||
"ApplicableVersion": "any",
|
||||
"Tags": [ "modding" ],
|
||||
"DalamudApiLevel": 6,
|
||||
"DalamudApiLevel": 7,
|
||||
"LoadPriority": 69420,
|
||||
"LoadRequiredState": 2,
|
||||
"LoadSync": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue