mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 14:53:50 +02:00
Path.Join()
This commit is contained in:
@@ -19,11 +19,11 @@ namespace VRCX
|
||||
|
||||
internal void Init()
|
||||
{
|
||||
var userDataDir = Path.Combine(Program.AppDataDirectory, "userdata");
|
||||
var userDataDir = Path.Join(Program.AppDataDirectory, "userdata");
|
||||
var cefSettings = new CefSettings
|
||||
{
|
||||
RootCachePath = userDataDir,
|
||||
CachePath = Path.Combine(userDataDir, "cache"),
|
||||
CachePath = Path.Join(userDataDir, "cache"),
|
||||
LogSeverity = LogSeverity.Disable,
|
||||
WindowlessRenderingEnabled = true,
|
||||
PersistSessionCookies = true,
|
||||
@@ -37,7 +37,7 @@ namespace VRCX
|
||||
SchemeName = "file",
|
||||
DomainName = "vrcx",
|
||||
SchemeHandlerFactory = new FolderSchemeHandlerFactory(
|
||||
Path.Combine(Program.BaseDirectory, "html"),
|
||||
Path.Join(Program.BaseDirectory, "html"),
|
||||
"file",
|
||||
defaultPage: "index.html"
|
||||
),
|
||||
|
||||
@@ -31,10 +31,10 @@ public class BrowserSubprocess
|
||||
return;
|
||||
}
|
||||
|
||||
var browserSubprocessDllPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "CefSharp.BrowserSubprocess.Core.dll");
|
||||
var browserSubprocessDllPath = Path.Join(AppDomain.CurrentDomain.BaseDirectory, "CefSharp.BrowserSubprocess.Core.dll");
|
||||
if (!File.Exists(browserSubprocessDllPath))
|
||||
{
|
||||
browserSubprocessDllPath = Path.Combine(Path.GetDirectoryName(typeof(CefSharp.Core.BrowserSettings).Assembly.Location), "CefSharp.BrowserSubprocess.Core.dll");
|
||||
browserSubprocessDllPath = Path.Join(Path.GetDirectoryName(typeof(CefSharp.Core.BrowserSettings).Assembly.Location), "CefSharp.BrowserSubprocess.Core.dll");
|
||||
}
|
||||
var browserSubprocessDll = System.Runtime.Loader.AssemblyLoadContext.Default.LoadFromAssemblyPath(browserSubprocessDllPath);
|
||||
var browserSubprocessExecutableType = browserSubprocessDll.GetType("CefSharp.BrowserSubprocess.BrowserSubprocessExecutable");
|
||||
|
||||
Reference in New Issue
Block a user