mirror of
https://github.com/4sval/FModel.git
synced 2026-04-23 01:57:48 -05:00
Implement fix for Blueprints causing crashes
Blueprints can't be mapped out, so I have disabled the parsing of them, so they return empty json information.
This commit is contained in:
parent
b5c6137fda
commit
ded4c7a749
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
|
|
@ -164,25 +164,33 @@ namespace FModel.PakReader.Parsers
|
|||
}
|
||||
else
|
||||
{
|
||||
_dataExports[i] = null;
|
||||
_dataExports[i] = new UObject();
|
||||
_dataExportTypes[i] = exportType;
|
||||
#if DEBUG
|
||||
var header = new FUnversionedHeader(this);
|
||||
using var it = new FIterator(header);
|
||||
|
||||
FConsole.AppendText(string.Concat("\n", exportType.String, ": ", Summary.Name.String), "#CA6C6C", true);
|
||||
|
||||
do
|
||||
try
|
||||
{
|
||||
FConsole.AppendText($"Val: {it.Current.Val} (IsNonZero: {it.Current.IsNonZero})", FColors.Yellow, true);
|
||||
var header = new FUnversionedHeader(this);
|
||||
|
||||
using var it = new FIterator(header);
|
||||
FConsole.AppendText(string.Concat("\n", exportType.String, ": ", Summary.Name.String), "#CA6C6C", true);
|
||||
|
||||
do
|
||||
{
|
||||
FConsole.AppendText($"Val: {it.Current.Val} (IsNonZero: {it.Current.IsNonZero})", FColors.Yellow, true);
|
||||
}
|
||||
while (it.MoveNext());
|
||||
}
|
||||
catch (FileLoadException e)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
while (it.MoveNext());
|
||||
#endif
|
||||
}
|
||||
|
||||
currentExportDataOffset += (int) exportMapEntry.CookedSerialSize;
|
||||
}
|
||||
}
|
||||
|
||||
public override string ToString() => Summary.Name.String;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user