-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some more TERA.exe interop bindings needed by the symbiote.
- Loading branch information
Showing
6 changed files
with
162 additions
and
1 deletion.
There are no files selected for viewing
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,96 @@ | ||
namespace Vezel.Novadrop.Interop; | ||
|
||
[StructLayout(LayoutKind.Explicit, Size = 0x8c)] | ||
public unsafe struct FArchive | ||
{ | ||
[StructLayout(LayoutKind.Sequential)] | ||
public struct VirtualFunctionTable | ||
{ | ||
public delegate* unmanaged<FArchive*, uint, FArchive*> __vdtor; | ||
|
||
public delegate* unmanaged<FArchive*, void*, int> Serialize; | ||
|
||
public delegate* unmanaged<FArchive*, void*, int> SerializeBits; | ||
|
||
public delegate* unmanaged<FArchive*, uint*, uint> SerializeInt; | ||
|
||
public void* __slot4; | ||
|
||
public delegate* unmanaged<FArchive*, ulong, ulong> CountBytes; | ||
|
||
public void* __slot6; | ||
|
||
public void* __slot7; | ||
|
||
public void* __slot8; | ||
|
||
public void* __slot9; | ||
|
||
public delegate* unmanaged<FArchive*, int> Tell; | ||
|
||
public delegate* unmanaged<FArchive*, int> TotalSize; | ||
|
||
public delegate* unmanaged<FArchive*, BOOL> AtEnd; | ||
|
||
public delegate* unmanaged<FArchive*, int, void> Seek; | ||
|
||
public void* __slot14; | ||
|
||
public void* __slot15; | ||
|
||
public void* __slot16; | ||
|
||
public void* __slot17; | ||
|
||
public void* __slot18; | ||
|
||
public void* __slot19; | ||
|
||
public delegate* unmanaged<FArchive*, void> Flush; | ||
|
||
public delegate* unmanaged<FArchive*, BOOL> Close; | ||
|
||
public delegate* unmanaged<FArchive*, BOOL> GetError; | ||
|
||
public void* __slot23; | ||
|
||
public void* __slot24; | ||
|
||
public void* __slot25; | ||
|
||
public void* __slot26; | ||
|
||
public void* __slot27; | ||
|
||
public void* __slot28; | ||
|
||
public void* __slot29; | ||
} | ||
|
||
public static delegate* unmanaged<FArchive*, FArchive*> __ctor { get; } = | ||
(delegate* unmanaged<FArchive*, FArchive*>)Tera.Resolve(0x7ff69a843f10); | ||
|
||
public static delegate* unmanaged<FArchive*, uint, FArchive*> __vdtor { get; } = | ||
(delegate* unmanaged<FArchive*, uint, FArchive*>)Tera.Resolve(0x7ff69a845fe0); | ||
|
||
public static delegate* unmanaged<FArchive*, BOOL> AtEnd { get; } = | ||
(delegate* unmanaged<FArchive*, BOOL>)Tera.Resolve(0x7ff69a846ac0); | ||
|
||
public static delegate* unmanaged<FArchive*, void*, int, FArchive*> ByteOrderSerialize { get; } = | ||
(delegate* unmanaged<FArchive*, void*, int, FArchive*>)Tera.Resolve(0x7ff69a846b10); | ||
|
||
public static delegate* unmanaged<FArchive*, BOOL> Close { get; } = | ||
(delegate* unmanaged<FArchive*, BOOL>)Tera.Resolve(0x7ff69a846ba0); | ||
|
||
public static delegate* unmanaged<FArchive*, BOOL> GetError { get; } = | ||
(delegate* unmanaged<FArchive*, BOOL>)Tera.Resolve(0x7ff69a8488f0); | ||
|
||
public static delegate* unmanaged<FArchive*, void*, int, void> SerializeBits { get; } = | ||
(delegate* unmanaged<FArchive*, void*, int, void>)Tera.Resolve(0x7ff69a84bf20); | ||
|
||
public static delegate* unmanaged<FArchive*, uint*, uint, void> SerializeInt { get; } = | ||
(delegate* unmanaged<FArchive*, uint*, uint, void>)Tera.Resolve(0x7ff69a84bf90); | ||
|
||
[FieldOffset(0x0)] | ||
public VirtualFunctionTable* VFT; | ||
} |
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 @@ | ||
namespace Vezel.Novadrop.Interop; | ||
|
||
[StructLayout(LayoutKind.Explicit, Size = 0xa0)] | ||
public unsafe struct FBufferReader | ||
{ | ||
[StructLayout(LayoutKind.Sequential)] | ||
public struct VirtualFunctionTable | ||
{ | ||
public FArchive.VirtualFunctionTable FArchive; | ||
} | ||
|
||
public static delegate* unmanaged<FBufferReader*, void*, int, BOOL, BOOL, FBufferReader*> __ctor { get; } = | ||
(delegate* unmanaged<FBufferReader*, void*, int, BOOL, BOOL, FBufferReader*>)Tera.Resolve(0x7ff69a852b50); | ||
|
||
public static delegate* unmanaged<FBufferReader*, void> __dtor { get; } = | ||
(delegate* unmanaged<FBufferReader*, void>)Tera.Resolve(0x7ff69a854b20); | ||
|
||
public static delegate* unmanaged<FBufferReader*, FBufferReader*> __vdtor { get; } = | ||
(delegate* unmanaged<FBufferReader*, FBufferReader*>)Tera.Resolve(0x7ff69a8582e0); | ||
|
||
public static delegate* unmanaged<FBufferReader*, BOOL> AtEnd { get; } = | ||
(delegate* unmanaged<FBufferReader*, BOOL>)Tera.Resolve(0x7ff69a85be40); | ||
|
||
public static delegate* unmanaged<FBufferReader*, BOOL> Close { get; } = | ||
(delegate* unmanaged<FBufferReader*, BOOL>)Tera.Resolve(0x7ff69a85bfc0); | ||
|
||
public static delegate* unmanaged<FBufferReader*, int, void> Seek { get; } = | ||
(delegate* unmanaged<FBufferReader*, int, void>)Tera.Resolve(0x7ff69a879ef0); | ||
|
||
public static delegate* unmanaged<FBufferReader*, void*, int, void> Serialize { get; } = | ||
(delegate* unmanaged<FBufferReader*, void*, int, void>)Tera.Resolve(0x7ff69a87a370); | ||
|
||
public static delegate* unmanaged<FBufferReader*, int> Tell { get; } = | ||
(delegate* unmanaged<FBufferReader*, int>)Tera.Resolve(0x7ff69a87faf0); | ||
|
||
[FieldOffset(0x0)] | ||
public FArchive FArchive; | ||
|
||
[FieldOffset(0x0)] | ||
public VirtualFunctionTable* VFT; | ||
} |
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 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 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 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