Add cefsharp libs

This commit is contained in:
Timothy Baldridge 2019-12-26 16:38:13 -07:00
parent 9a6d93524c
commit 8c79b795e1
3 changed files with 5 additions and 5 deletions

View File

@ -22,17 +22,17 @@ namespace Wabbajack.Lib.LibCefHelpers
/// </summary> /// </summary>
private static async Task ExtractLibs() private static async Task ExtractLibs()
{ {
if (File.Exists("cefglue.7z") && File.Exists("libcef.dll")) return; if (File.Exists("cefsharp.7z") && File.Exists("libcef.dll")) return;
using (var fs = File.OpenWrite("cefglue.7z")) using (var fs = File.OpenWrite("cefsharp.7z"))
using (var rs = Assembly.GetExecutingAssembly().GetManifestResourceStream("Wabbajack.Lib.LibCefHelpers.cefglue.7z")) using (var rs = Assembly.GetExecutingAssembly().GetManifestResourceStream("Wabbajack.Lib.LibCefHelpers.cefsharp.7z"))
{ {
rs.CopyTo(fs); rs.CopyTo(fs);
Utils.Log("Extracting libCef files"); Utils.Log("Extracting libCef files");
} }
using (var wq = new WorkQueue(1)) using (var wq = new WorkQueue(1))
{ {
await FileExtractor.ExtractAll(wq, "cefglue.7z", "."); await FileExtractor.ExtractAll(wq, "cefsharp.7z", ".");
} }
} }

View File

@ -164,7 +164,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="app.config" /> <None Include="app.config" />
<EmbeddedResource Include="LibCefHelpers\cefglue.7z" /> <EmbeddedResource Include="LibCefHelpers\cefsharp.7z" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="$(SolutionDir)\Compression.BSA\Compression.BSA.csproj"> <ProjectReference Include="$(SolutionDir)\Compression.BSA\Compression.BSA.csproj">