Fixes
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user