Reverting unintended changes to CefExample.cs

This commit is contained in:
jankurianski
2015-07-21 20:20:18 +10:00
parent 5e658fccb5
commit 153d0fc7ea
+5 -6
View File
@@ -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");
}