mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 19:54:53 +00:00
Reverting unintended changes to CefExample.cs
This commit is contained in:
@@ -70,11 +70,10 @@ namespace CefSharp.Example
|
||||
|
||||
settings.LogSeverity = LogSeverity.Verbose;
|
||||
|
||||
//if (DebuggingSubProcess)
|
||||
//{
|
||||
// var architecture = Environment.Is64BitProcess ? "x64" : "x86";
|
||||
// settings.BrowserSubprocessPath = "..\\..\\..\\..\\CefSharp.BrowserSubprocess\\bin\\" + architecture + "\\Debug\\CefSharp.BrowserSubprocess.exe";
|
||||
//}
|
||||
if (DebuggingSubProcess) {
|
||||
var architecture = Environment.Is64BitProcess ? "x64" : "x86";
|
||||
settings.BrowserSubprocessPath = "..\\..\\..\\..\\CefSharp.BrowserSubprocess\\bin\\" + architecture + "\\Debug\\CefSharp.BrowserSubprocess.exe";
|
||||
}
|
||||
|
||||
settings.RegisterScheme(new CefCustomScheme
|
||||
{
|
||||
@@ -87,7 +86,7 @@ namespace CefSharp.Example
|
||||
Cef.SetCookiePath("cookies", true);
|
||||
};
|
||||
|
||||
if (!Cef.Initialize(settings, shutdownOnProcessExit: true, performDependencyCheck: true))
|
||||
if (!Cef.Initialize(settings, shutdownOnProcessExit: true, performDependencyCheck: !DebuggingSubProcess))
|
||||
{
|
||||
throw new Exception("Unable to Initialize Cef");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user