This commit is contained in:
Wojtek Figat
2021-08-27 16:05:50 +02:00
parent 05fc1b8dd1
commit 146626045f
4 changed files with 17 additions and 6 deletions

View File

@@ -462,8 +462,19 @@ void GDKPlatform::Exit()
void GDKPlatform::Log(const StringView& msg)
{
OutputDebugStringW(msg.Get());
OutputDebugStringW(TEXT(PLATFORM_LINE_TERMINATOR));
Char buffer[512];
Char* str;
if (msg.Length() + 3 < ARRAY_COUNT(buffer))
str = buffer;
else
str = (Char*)Allocate((msg.Length() + 3) * sizeof(Char), 16);
MemoryCopy(str, msg.Get(), msg.Length() * sizeof(Char));
str[msg.Length() + 0] = '\r';
str[msg.Length() + 1] = '\n';
str[msg.Length() + 2] = 0;
OutputDebugStringW(str);
if (str != buffer)
Free(str);
}
bool GDKPlatform::IsDebuggerPresent()

View File

@@ -9,7 +9,7 @@
/// <summary>
/// The GDK platform implementation and application management utilities.
/// </summary>
class GDKPlatform : public Win32Platform
class FLAXENGINE_API GDKPlatform : public Win32Platform
{
public:

View File

@@ -11,7 +11,7 @@
/// <summary>
/// Implementation of the window class for GDK platform.
/// </summary>
class GDKWindow : public WindowBase
class FLAXENGINE_API GDKWindow : public WindowBase
{
friend GDKPlatform;
private: