mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Added omod extraction via dll
This commit is contained in:
parent
a266e79655
commit
e8b0c3b29f
@ -38,6 +38,8 @@ namespace Wabbajack.Common
|
|||||||
ExtractAllWithBSA(source, dest);
|
ExtractAllWithBSA(source, dest);
|
||||||
else if (source.EndsWith(".exe"))
|
else if (source.EndsWith(".exe"))
|
||||||
ExtractAllWithInno(source, dest);
|
ExtractAllWithInno(source, dest);
|
||||||
|
else if (source.EndsWith(".omod"))
|
||||||
|
ExtractAllWithOMOD(source, dest);
|
||||||
else
|
else
|
||||||
ExtractAllWith7Zip(source, dest);
|
ExtractAllWith7Zip(source, dest);
|
||||||
}
|
}
|
||||||
@ -48,6 +50,17 @@ namespace Wabbajack.Common
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static void ExtractAllWithOMOD(string source, string dest)
|
||||||
|
{
|
||||||
|
Utils.Log($"Extracting {Path.GetFileName(source)}");
|
||||||
|
OMODExtractorDLL.OMOD omod = new OMODExtractorDLL.OMOD(source, dest+"//", "temp");
|
||||||
|
omod.SaveConfig();
|
||||||
|
omod.SaveFile("script");
|
||||||
|
omod.SaveFile("readme");
|
||||||
|
omod.ExtractData();
|
||||||
|
omod.ExtractPlugins();
|
||||||
|
}
|
||||||
|
|
||||||
private static void ExtractAllWithBSA(string source, string dest)
|
private static void ExtractAllWithBSA(string source, string dest)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user