Skip to content

Commit

Permalink
[Fix]: NativesTableList is now initialized when exporting classes thr…
Browse files Browse the repository at this point in the history
…ough the commandline. fixes #10
  • Loading branch information
EliotVU committed Dec 24, 2012
1 parent e5c4461 commit 847ef26
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion UE Explorer/ExportHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public static void CreateUPKGFile( this UnrealPackage package, string exportPath
public static string ExportPackageClasses( this UnrealPackage package, bool exportScripts = false )
{
var exportPath = package.InitializeExportDirectory();
foreach( UClass uClass in package.ObjectsList.Where( o => o is UClass && o.ExportTable != null ) )
package.NTLPackage = new NativesTablePackage();
package.NTLPackage.LoadPackage( Program.Options.NTLPath );
foreach( UClass uClass in package.Objects.Where( o => o is UClass && o.ExportTable != null ) )
{
var exportContent = exportScripts && uClass.ScriptBuffer != null
? uClass.ScriptBuffer.Decompile()
Expand Down

0 comments on commit 847ef26

Please sign in to comment.