mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-22 14:55:11 +00:00
Smarter handling
This commit is contained in:
@@ -150,29 +150,6 @@ namespace ExtractionTool
|
||||
#endif
|
||||
}
|
||||
|
||||
// Executable
|
||||
else if (ft == WrapperType.Executable)
|
||||
{
|
||||
Console.WriteLine("Extracting executable contents");
|
||||
Console.WriteLine();
|
||||
|
||||
var exe = WrapperFactory.CreateExecutableWrapper(stream);
|
||||
if (exe == null)
|
||||
return;
|
||||
|
||||
// TODO: Add Wise installer handling here
|
||||
|
||||
// New Executable
|
||||
if (exe is NewExecutable nex)
|
||||
{
|
||||
// No-op
|
||||
}
|
||||
|
||||
// Portable Executable
|
||||
else if (exe is PortableExecutable pex)
|
||||
pex.Extract(outputDirectory, includeDebug);
|
||||
}
|
||||
|
||||
// GCF
|
||||
else if (wrapper is GCF gcf)
|
||||
{
|
||||
@@ -260,6 +237,15 @@ namespace ExtractionTool
|
||||
#endif
|
||||
// }
|
||||
|
||||
// New Executable
|
||||
else if (wrapper is NewExecutable nex)
|
||||
{
|
||||
Console.WriteLine("Extracting New Executable contents");
|
||||
Console.WriteLine();
|
||||
|
||||
// TODO: Add Wise installer handling here
|
||||
}
|
||||
|
||||
// PAK
|
||||
else if (wrapper is PAK pak)
|
||||
{
|
||||
@@ -292,6 +278,16 @@ namespace ExtractionTool
|
||||
#endif
|
||||
}
|
||||
|
||||
// Portable Executable
|
||||
else if (wrapper is PortableExecutable pex)
|
||||
{
|
||||
Console.WriteLine("Extracting Portable Executable contents");
|
||||
Console.WriteLine();
|
||||
|
||||
// TODO: Add Wise installer handling here
|
||||
pex.Extract(outputDirectory, includeDebug);
|
||||
}
|
||||
|
||||
// Quantum
|
||||
else if (wrapper is Quantum quantum)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user