mirror of
https://github.com/4sval/FModel.git
synced 2026-04-26 00:04:53 -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];
|
var exportMapEntry = ExportMap[i];
|
||||||
FPackageObjectIndex trigger;
|
FPackageObjectIndex trigger;
|
||||||
|
|
||||||
if (exportMapEntry.ClassIndex.IsExport)
|
if (exportMapEntry.ClassIndex.IsExport)
|
||||||
trigger = exportMapEntry.SuperIndex;
|
{
|
||||||
|
trigger = ExportMap[exportMapEntry.ClassIndex.AsExport].SuperIndex;
|
||||||
|
}
|
||||||
else if (exportMapEntry.ClassIndex.IsImport)
|
else if (exportMapEntry.ClassIndex.IsImport)
|
||||||
|
{
|
||||||
trigger = exportMapEntry.ClassIndex;
|
trigger = exportMapEntry.ClassIndex;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
throw new FileLoadException("Can't get class name");
|
throw new FileLoadException("Can't get class name");
|
||||||
|
}
|
||||||
|
|
||||||
FName exportType;
|
FName exportType;
|
||||||
|
|
||||||
if (GlobalData != null && GlobalData.ScriptObjectByGlobalId.TryGetValue(trigger, out var scriptObject))
|
if (GlobalData != null && GlobalData.ScriptObjectByGlobalId.TryGetValue(trigger, out var scriptObject))
|
||||||
{
|
{
|
||||||
exportType = scriptObject.Name;
|
exportType = scriptObject.Name;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user