mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-16 16:16:44 +00:00
Plumb moonlight-common-c log messages into the console
This commit is contained in:
parent
56d9e75d2b
commit
fb2258fa34
@ -45,9 +45,14 @@ void MoonlightInstance::ClDisplayTransientMessage(const char* message) {
|
||||
|
||||
void MoonlightInstance::ClLogMessage(const char* format, ...) {
|
||||
va_list va;
|
||||
char message[1024];
|
||||
|
||||
va_start(va, format);
|
||||
vfprintf(stderr, format, va);
|
||||
vsnprintf(message, sizeof(message), format, va);
|
||||
va_end(va);
|
||||
|
||||
pp::Var response(std::string("LogMsg: ") + std::string(message));
|
||||
g_Instance->PostMessage(response);
|
||||
}
|
||||
|
||||
CONNECTION_LISTENER_CALLBACKS MoonlightInstance::s_ClCallbacks = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user