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()
{
var userDataDir = Path.Combine(Program.AppDataDirectory, "userdata");
var cefSettings = new CefSettings
{
CachePath = Path.Combine(Program.AppDataDirectory, "cache"),
UserDataPath = Path.Combine(Program.AppDataDirectory, "userdata"),
RootCachePath = userDataDir,
CachePath = Path.Combine(userDataDir, "cache"),
LogSeverity = LogSeverity.Disable,
WindowlessRenderingEnabled = true,
PersistSessionCookies = true,

View File

@@ -43,6 +43,16 @@ namespace VRCX
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()

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">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
@@ -189,13 +189,13 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="CefSharp.Common">
<Version>114.2.120</Version>
<Version>116.0.150</Version>
</PackageReference>
<PackageReference Include="CefSharp.OffScreen">
<Version>114.2.120</Version>
<Version>116.0.150</Version>
</PackageReference>
<PackageReference Include="CefSharp.WinForms">
<Version>114.2.120</Version>
<Version>116.0.150</Version>
</PackageReference>
<PackageReference Include="DiscordRichPresence">
<Version>1.2.1.24</Version>
@@ -207,7 +207,7 @@
<Version>13.0.3</Version>
</PackageReference>
<PackageReference Include="NLog">
<Version>5.2.2</Version>
<Version>5.2.3</Version>
</PackageReference>
<PackageReference Include="SharpDX.D3DCompiler">
<Version>4.2.0</Version>