1
0

Debug/Release mode changes

This commit is contained in:
Scott E. Graves
2017-04-01 09:15:11 -05:00
parent 1c69e46fbf
commit 30f562745b

View File

@@ -19,7 +19,9 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
{ {
UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine); UNREFERENCED_PARAMETER(lpCmdLine);
#ifdef _DEBUG
CDebugConsumer debugConsumer; CDebugConsumer debugConsumer;
#endif
CLoggingConsumer loggingConsumer; CLoggingConsumer loggingConsumer;
CEventSystem::EventSystem.Start(); CEventSystem::EventSystem.Start();
@@ -34,16 +36,18 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
} }
CefSettings settings; CefSettings settings;
settings.no_sandbox = true; settings.no_sandbox = true;
settings.remote_debugging_port = 8080;
#ifdef _DEBUG #ifdef _DEBUG
settings.remote_debugging_port = 8080;
settings.single_process = true; settings.single_process = true;
settings.log_severity = LOGSEVERITY_VERBOSE;
#else
settings.log_severity = LOGSEVERITY_DISABLE;
#endif #endif
CefInitialize(mainArgs, settings, app, nullptr); CefInitialize(mainArgs, settings, app, nullptr);
CefRunMessageLoop(); CefRunMessageLoop();
CEventSystem::EventSystem.Stop();
CefShutdown(); CefShutdown();
CEventSystem::EventSystem.Stop();
return 0;; return 0;;
} }