Dokan logging
This commit is contained in:
BIN
3rd_party/vc_redist.x64.exe
vendored
Normal file
BIN
3rd_party/vc_redist.x64.exe
vendored
Normal file
Binary file not shown.
@@ -17,6 +17,7 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
|||||||
{
|
{
|
||||||
UNREFERENCED_PARAMETER(hPrevInstance);
|
UNREFERENCED_PARAMETER(hPrevInstance);
|
||||||
UNREFERENCED_PARAMETER(lpCmdLine);
|
UNREFERENCED_PARAMETER(lpCmdLine);
|
||||||
|
|
||||||
CefEnableHighDPISupport();
|
CefEnableHighDPISupport();
|
||||||
|
|
||||||
CefMainArgs mainArgs(hInstance);
|
CefMainArgs mainArgs(hInstance);
|
||||||
@@ -29,12 +30,8 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
|||||||
CefSettings settings;
|
CefSettings settings;
|
||||||
settings.no_sandbox = true;
|
settings.no_sandbox = true;
|
||||||
settings.remote_debugging_port = 8080;
|
settings.remote_debugging_port = 8080;
|
||||||
// HACK When logging is enabled, drive access is really slow
|
|
||||||
FilePath("Debug.log").DeleteFile();
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
settings.single_process = true;
|
settings.single_process = true;
|
||||||
#else
|
|
||||||
settings.log_severity = LOGSEVERITY_DISABLE;
|
|
||||||
#endif
|
#endif
|
||||||
CefInitialize(mainArgs, settings, app, nullptr);
|
CefInitialize(mainArgs, settings, app, nullptr);
|
||||||
|
|
||||||
|
@@ -871,7 +871,7 @@ public:
|
|||||||
_dokanOptions.Version = DOKAN_VERSION;
|
_dokanOptions.Version = DOKAN_VERSION;
|
||||||
_dokanOptions.ThreadCount = 0; // use default
|
_dokanOptions.ThreadCount = 0; // use default
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
_dokanOptions.Options = DOKAN_OPTION_DEBUG;
|
_dokanOptions.Options = DOKAN_OPTION_DEBUG | DOKAN_OPTION_DEBUG_LOG;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user