diff --git a/CefService.cs b/CefService.cs index d1ad7655..b70e3188 100644 --- a/CefService.cs +++ b/CefService.cs @@ -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, diff --git a/Program.cs b/Program.cs index 8dcf1760..ce333ffa 100644 --- a/Program.cs +++ b/Program.cs @@ -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() diff --git a/VRCX.csproj b/VRCX.csproj index f3681c2c..22156f86 100644 --- a/VRCX.csproj +++ b/VRCX.csproj @@ -1,4 +1,4 @@ - + @@ -189,13 +189,13 @@ - 114.2.120 + 116.0.150 - 114.2.120 + 116.0.150 - 114.2.120 + 116.0.150 1.2.1.24 @@ -207,7 +207,7 @@ 13.0.3 - 5.2.2 + 5.2.3 4.2.0