chore(.NET): update to Cef 116.0.150

This commit is contained in:
Natsumi
2023-09-03 09:30:22 +12:00
parent 102092e6d3
commit a2b06dbe23
3 changed files with 18 additions and 7 deletions

View File

@@ -17,10 +17,11 @@ namespace VRCX
internal void Init() internal void Init()
{ {
var userDataDir = Path.Combine(Program.AppDataDirectory, "userdata");
var cefSettings = new CefSettings var cefSettings = new CefSettings
{ {
CachePath = Path.Combine(Program.AppDataDirectory, "cache"), RootCachePath = userDataDir,
UserDataPath = Path.Combine(Program.AppDataDirectory, "userdata"), CachePath = Path.Combine(userDataDir, "cache"),
LogSeverity = LogSeverity.Disable, LogSeverity = LogSeverity.Disable,
WindowlessRenderingEnabled = true, WindowlessRenderingEnabled = true,
PersistSessionCookies = true, PersistSessionCookies = true,

View File

@@ -43,6 +43,16 @@ namespace VRCX
File.Copy(Path.Combine(AppDataDirectory, "VRCX.sqlite3"), Path.Combine(AppDataDirectory, "VRCX-backup.sqlite3")); File.Copy(Path.Combine(AppDataDirectory, "VRCX.sqlite3"), Path.Combine(AppDataDirectory, "VRCX-backup.sqlite3"));
} }
} }
// Migrate cache to userdata for Cef 115 update
var oldCachePath = Path.Combine(AppDataDirectory, "cache");
if (Directory.Exists(oldCachePath))
{
var newCachePath = Path.Combine(AppDataDirectory, "userdata", "cache");
if (Directory.Exists(newCachePath))
Directory.Delete(newCachePath, true);
Directory.Move(oldCachePath, newCachePath);
}
} }
private static void ConfigureLogger() private static void ConfigureLogger()

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
@@ -189,13 +189,13 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="CefSharp.Common"> <PackageReference Include="CefSharp.Common">
<Version>114.2.120</Version> <Version>116.0.150</Version>
</PackageReference> </PackageReference>
<PackageReference Include="CefSharp.OffScreen"> <PackageReference Include="CefSharp.OffScreen">
<Version>114.2.120</Version> <Version>116.0.150</Version>
</PackageReference> </PackageReference>
<PackageReference Include="CefSharp.WinForms"> <PackageReference Include="CefSharp.WinForms">
<Version>114.2.120</Version> <Version>116.0.150</Version>
</PackageReference> </PackageReference>
<PackageReference Include="DiscordRichPresence"> <PackageReference Include="DiscordRichPresence">
<Version>1.2.1.24</Version> <Version>1.2.1.24</Version>
@@ -207,7 +207,7 @@
<Version>13.0.3</Version> <Version>13.0.3</Version>
</PackageReference> </PackageReference>
<PackageReference Include="NLog"> <PackageReference Include="NLog">
<Version>5.2.2</Version> <Version>5.2.3</Version>
</PackageReference> </PackageReference>
<PackageReference Include="SharpDX.D3DCompiler"> <PackageReference Include="SharpDX.D3DCompiler">
<Version>4.2.0</Version> <Version>4.2.0</Version>