Skip to content

Commit 071dbe2

Browse files
committed
put CommonGenericInputActionDataTable in write too for good measure
1 parent 224dad9 commit 071dbe2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

UAssetAPI/ExportTypes/DataTableExport.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using UAssetAPI.PropertyTypes.Structs;
44
using UAssetAPI.UnrealTypes;
55
using UAssetAPI.ExportTypes;
6+
using System.Reflection.PortableExecutable;
67

78
namespace UAssetAPI.ExportTypes
89
{
@@ -125,6 +126,19 @@ public override void Write(AssetBinaryWriter writer)
125126
}
126127
}
127128

129+
if (decidedStructType.ToString() == "Generic")
130+
{
131+
// overrides here...
132+
FName exportClassTypeName = this.GetExportClassType();
133+
string exportClassType = exportClassTypeName.Value.Value;
134+
switch (exportClassType)
135+
{
136+
case "CommonGenericInputActionDataTable":
137+
decidedStructType = FName.DefineDummy(writer.Asset, "CommonInputActionDataBase");
138+
break;
139+
}
140+
}
141+
128142
writer.Write((int)0);
129143

130144
writer.Write(Table.Data.Count);

0 commit comments

Comments
 (0)