add splash screen and setup remote debugger

This commit is contained in:
2019-05-15 02:35:11 +02:00
parent 5b26afa1a3
commit f890d580b0
8 changed files with 150 additions and 35 deletions

View File

@@ -96,6 +96,10 @@ void LogRemote::log(const char* format, ...)
m_logfile.write(line.data(), line.size());
m_logfile.flush();
}
#if _WIN32
auto line = "DBG: " + std::string(buffer, n) + "\n";
OutputDebugStringA(line.c_str());
#endif
}
void LogRemote::log(const wchar_t* format, ...)
{
@@ -127,6 +131,10 @@ void LogRemote::log(const wchar_t* format, ...)
m_logfile.write(line.data(), line.size());
m_logfile.flush();
}
#if _WIN32
auto line = L"DBG: " + std::wstring(buffer, n) + L"\n";
OutputDebugStringW(line.c_str());
#endif
}
LogRemote::~LogRemote()
{