Skip to content

Commit 616223c

Browse files
committed
Merge remote-tracking branch 'ottercorp/cn' into cn
2 parents b5a0b13 + b67f647 commit 616223c

File tree

10 files changed

+24
-22
lines changed

10 files changed

+24
-22
lines changed

FFXIVClientStructs/FFXIV/Client/Game/Control/TargetSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public unsafe partial struct TargetSystem {
6363
[MemberFunction("E9 ?? ?? ?? ?? 48 8B 01 FF 50 08 48 8B C8")]
6464
public partial ulong InteractWithObject(GameObject* obj, bool checkLineOfSight = true);
6565

66-
[MemberFunction("E8 ?? ?? ?? ?? E9 ?? ?? ?? ?? 48 8B 94")]
66+
[MemberFunction("E9 ?? ?? ?? ?? 8B C0 48 8D 0D ?? ?? ?? ?? 45 33 C9")]
6767
public partial void OpenObjectInteraction(GameObject* obj);
6868

6969
[MemberFunction("E8 ?? ?? ?? ?? 48 8B D8 48 85 C0 74 50 48 8B CB")]

FFXIVClientStructs/FFXIV/Client/System/Framework/Framework.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace FFXIVClientStructs.FFXIV.Client.System.Framework;
2121
[VirtualTable("48 8D 05 ?? ?? ?? ?? 66 C7 41 ?? ?? ?? 48 89 01 48 8B F1", 3)]
2222
[StructLayout(LayoutKind.Explicit, Size = 0x35F0)]
2323
public unsafe partial struct Framework {
24-
[StaticAddress("49 8B DC 48 89 1D ?? ?? ?? ??", 6, isPointer: true)]
24+
[StaticAddress("48 8B 1D ?? ?? ?? ?? 8B 7C 24 64", 3, isPointer: true)]
2525
public static partial Framework* Instance();
2626

2727
[FieldOffset(0x0010)] public SystemConfig SystemConfig;

FFXIVClientStructs/FFXIV/Client/System/Memory/IMemorySpace.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ public interface ICreatable {
99
[StructLayout(LayoutKind.Explicit, Size = 8)]
1010
public unsafe partial struct IMemorySpace {
1111
public T* Create<T>() where T : unmanaged, ICreatable {
12-
var memory = Calloc<T>(1);
12+
var memory = (T*)Malloc<T>();
1313
if (memory is null) return null;
14+
Memset(memory, 0, (ulong)sizeof(T));
1415
memory->Ctor();
1516
return memory;
1617
}

FFXIVClientStructs/FFXIV/Client/UI/Agent/AgentContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public unsafe partial struct AgentContext {
4949
[FieldOffset(0x17D9)] public byte ContextMenuIndex;
5050
[FieldOffset(0x17DA)] public byte OpenAtPosition; // if true menu opens at Position else at cursor location
5151

52-
[MemberFunction("E8 ?? ?? ?? ?? 45 88 74 24")]
52+
[MemberFunction("E8 ?? ?? ?? ?? 32 C0 EB 84")]
5353
public partial void OpenContextMenu(bool bindToOwner = true, bool closeExisting = true);
5454

5555
[MemberFunction("41 0F B6 C0 89 91")]

FFXIVClientStructs/FFXIV/Client/UI/Agent/AgentMutelist.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public unsafe partial struct AgentMutelist {
1313
[FieldOffset(0x58)] public ulong SelectedPlayerAccountId;
1414
[FieldOffset(0x68)] public Utf8String SelectedPlayerFullName; // includes cross world icon
1515

16-
[MemberFunction("E8 ?? ?? ?? ?? EB 32 E8 ?? ?? ?? ?? 84 C0"), GenerateStringOverloads]
16+
[MemberFunction("E8 ?? ?? ?? ?? 48 8B 5C 24 ?? 48 8B 7C 24 ?? 48 83 C4 30 5E C3 E8"), GenerateStringOverloads]
1717
public partial bool Add(ulong accountId, ulong contentId, CStringPointer name, short worldId);
1818

1919
[MemberFunction("E8 ?? ?? ?? ?? 8B 54 24 50 48 8B CB E8 ?? ?? ?? ?? 48 8B 5C 24")]

FFXIVClientStructs/FFXIV/Client/UI/Misc/BannerHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public unsafe partial struct BannerHelper {
1818

1919
#region CharaView Helpers
2020

21-
[MemberFunction("48 89 5C 24 ?? 57 48 83 EC 30 41 0F B7 40")]
21+
[MemberFunction("E8 ?? ?? ?? ?? 0F 2E F0 7A 13")]
2222
public partial void ExportedPortraitData_ApplyBannerModuleEntry(ExportedPortraitData* to, BannerModuleEntry* from);
2323

2424
[MemberFunction("E8 ?? ?? ?? ?? F6 45 72 01")]

FFXIVClientStructs/FFXIV/Client/UI/Misc/RaptureLogModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public unsafe partial struct RaptureLogModule {
6868
[MemberFunction("E8 ?? ?? ?? ?? 40 80 C6 41"), GenerateStringOverloads]
6969
public partial void PrintString(CStringPointer str);
7070

71-
[MemberFunction("E8 ?? ?? ?? ?? 84 C0 0F 84 ?? ?? ?? ?? 48 8D 96 ?? ?? ?? ?? 48 8D 4C 24")]
71+
[MemberFunction("E8 ?? ?? ?? ?? 84 C0 0F 84 ?? ?? ?? ?? 48 8D 4D B0 E8 ?? ?? ?? ?? 48 8B D0")]
7272
public partial bool GetLogMessage(int index, Utf8String* str);
7373

7474
[MemberFunction("E8 ?? ?? ?? ?? 84 C0 74 51 44 0F B6 95")]

FFXIVClientStructs/FFXIV/Client/UI/RaptureAtkModule.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ public unsafe partial struct RaptureAtkModule {
3232
[FieldOffset(0x86E0)] public Utf8String BoldOn; // <bold(1)>
3333
[FieldOffset(0x8748)] public Utf8String BoldOff; // <bold(0)>
3434

35-
[FieldOffset(0x87F7)] public AgentUpdateFlags AgentUpdateFlag; // reset happens in RaptureAtkModule_OnUpdate
36-
[FieldOffset(0x87F8)] internal fixed byte AddonAllocators[0x28 * 917];
37-
[FieldOffset(0x11740)] public StdVector<Utf8String> AddonNames;
38-
[FieldOffset(0x11758)] public AddonConfig* AddonConfigPtr;
39-
40-
[FieldOffset(0x11810)] public UIModule* UIModulePtr;
41-
[FieldOffset(0x11818)] public RaptureLogModule* RaptureLogModulePtr;
42-
[FieldOffset(0x11820)] public AgentModule AgentModule;
43-
[FieldOffset(0x12718)] public RaptureHotbarModule* RaptureHotbarModulePtr;
44-
[FieldOffset(0x12720)] public RaptureAtkUnitManager RaptureAtkUnitManager;
45-
[FieldOffset(0x1C438)] public RaptureAtkColorDataManager RaptureAtkColorDataManager;
46-
47-
[FieldOffset(0x1C6B8)] public int NameplateInfoCount;
48-
[FieldOffset(0x1C6C0), FixedSizeArray] internal FixedSizeArray50<NamePlateInfo> _namePlateInfoEntries;
35+
[FieldOffset(0x87F7 - 0x10)] public AgentUpdateFlags AgentUpdateFlag; // reset happens in RaptureAtkModule_OnUpdate
36+
[FieldOffset(0x87F8 - 0x10)] internal fixed byte AddonAllocators[0x28 * 917];
37+
[FieldOffset(0x11740 - 0x10)] public StdVector<Utf8String> AddonNames;
38+
[FieldOffset(0x11758 - 0x10)] public AddonConfig* AddonConfigPtr;
39+
40+
[FieldOffset(0x11810 - 0x10)] public UIModule* UIModulePtr;
41+
[FieldOffset(0x11818 - 0x10)] public RaptureLogModule* RaptureLogModulePtr;
42+
[FieldOffset(0x11820 - 0x10)] public AgentModule AgentModule;
43+
[FieldOffset(0x12718 - 0x10)] public RaptureHotbarModule* RaptureHotbarModulePtr;
44+
[FieldOffset(0x12720 - 0x10)] public RaptureAtkUnitManager RaptureAtkUnitManager;
45+
[FieldOffset(0x1C438 - 0x10)] public RaptureAtkColorDataManager RaptureAtkColorDataManager;
46+
47+
[FieldOffset(0x1C6B8 - 0x10)] public int NameplateInfoCount;
48+
[FieldOffset(0x1C6C0 - 0x10), FixedSizeArray] internal FixedSizeArray50<NamePlateInfo> _namePlateInfoEntries;
4949

5050
[FieldOffset(0x23B38), FixedSizeArray] internal FixedSizeArray18<CrystalCache> _crystalItemCache;
5151
[FieldOffset(0x245E8)] public ItemCache* KeyItemCache; // ptr to 120 entries

FFXIVClientStructs/FFXIV/Component/GUI/AtkModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public unsafe partial struct AtkModule {
3838
[FieldOffset(0x72A0)] public StdMap<uint, AddonCallbackEntry> AddonCallbackMapping; // Key is UnitBase->Id
3939
[FieldOffset(0x72B0)] public AtkMessageBoxManager* AtkMessageBoxManager;
4040
[FieldOffset(0x72B8)] public TextService TextService;
41-
[FieldOffset(0x72E8)] public AtkTextInput TextInput;
41+
[FieldOffset(0x72D8)] public AtkTextInput TextInput;
4242
[FieldOffset(0x7FA8)] internal Utf8String Unk7FA8;
4343
[FieldOffset(0x8010)] internal Utf8String Unk8010;
4444
[FieldOffset(0x8078)] internal Utf8String Unk8078;

FFXIVClientStructs/FFXIVClientStructs.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
<PrivateAssets>all</PrivateAssets>
5151
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
5252
</PackageReference>
53+
<PackageReference Include="JetBrains.Annotations" Version="2024.2.0" />
5354
<ProjectReference Include="..\FFXIVClientStructs.Generators\FFXIVClientStructs.Generators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
5455
<ProjectReference Include="..\InteropGenerator\InteropGenerator.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" />
5556
<ProjectReference Include="..\InteropGenerator.Runtime\InteropGenerator.Runtime.csproj" />

0 commit comments

Comments
 (0)