mirror of
https://github.com/4sval/FModel.git
synced 2026-03-22 01:34:37 -05:00
fixed exporttype "parsing"
This commit is contained in:
parent
16bf9de35e
commit
afc6d783ec
|
|
@ -127,14 +127,22 @@ namespace FModel.PakReader.Parsers
|
|||
{
|
||||
var exportMapEntry = ExportMap[i];
|
||||
FPackageObjectIndex trigger;
|
||||
|
||||
if (exportMapEntry.ClassIndex.IsExport)
|
||||
trigger = exportMapEntry.SuperIndex;
|
||||
{
|
||||
trigger = ExportMap[exportMapEntry.ClassIndex.AsExport].SuperIndex;
|
||||
}
|
||||
else if (exportMapEntry.ClassIndex.IsImport)
|
||||
{
|
||||
trigger = exportMapEntry.ClassIndex;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new FileLoadException("Can't get class name");
|
||||
}
|
||||
|
||||
FName exportType;
|
||||
|
||||
if (GlobalData != null && GlobalData.ScriptObjectByGlobalId.TryGetValue(trigger, out var scriptObject))
|
||||
{
|
||||
exportType = scriptObject.Name;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user