mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2025-08-17 16:46:31 +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, ...) {
|
void MoonlightInstance::ClLogMessage(const char* format, ...) {
|
||||||
va_list va;
|
va_list va;
|
||||||
|
char message[1024];
|
||||||
|
|
||||||
va_start(va, format);
|
va_start(va, format);
|
||||||
vfprintf(stderr, format, va);
|
vsnprintf(message, sizeof(message), format, va);
|
||||||
va_end(va);
|
va_end(va);
|
||||||
|
|
||||||
|
pp::Var response(std::string("LogMsg: ") + std::string(message));
|
||||||
|
g_Instance->PostMessage(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
CONNECTION_LISTENER_CALLBACKS MoonlightInstance::s_ClCallbacks = {
|
CONNECTION_LISTENER_CALLBACKS MoonlightInstance::s_ClCallbacks = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user