mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-02 05:43:42 +01:00
Add debug display for ResidentResources.
This commit is contained in:
parent
ad55d178d4
commit
98b4b29ff5
8 changed files with 59 additions and 102 deletions
|
|
@ -3,9 +3,9 @@ namespace Penumbra.Interop.Structs;
|
|||
public enum FileMode : uint
|
||||
{
|
||||
LoadUnpackedResource = 0,
|
||||
LoadFileResource = 1, // Shit in My Games uses this
|
||||
LoadFileResource = 1, // The config files in MyGames use this.
|
||||
|
||||
// some shit here, the game does some jump if its < 0xA for other files for some reason but there's no impl, probs debug?
|
||||
// Probably debug options only.
|
||||
LoadIndexResource = 0xA, // load index/index2
|
||||
LoadSqPackResource = 0xB,
|
||||
}
|
||||
19
Penumbra/Interop/Structs/ResidentResourceManager.cs
Normal file
19
Penumbra/Interop/Structs/ResidentResourceManager.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Penumbra.Interop.Structs;
|
||||
|
||||
[StructLayout(LayoutKind.Explicit)]
|
||||
public unsafe struct ResidentResourceManager
|
||||
{
|
||||
[FieldOffset( 0x00 )]
|
||||
public void** VTable;
|
||||
|
||||
[FieldOffset( 0x08 )]
|
||||
public void** ResourceListVTable;
|
||||
|
||||
[FieldOffset( 0x14 )]
|
||||
public uint NumResources;
|
||||
|
||||
[FieldOffset( 0x18 )]
|
||||
public ResourceHandle** ResourceList;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue