Skip to content

Commit e23d7a7

Browse files
committed
Editor: Fixed WinXP compatibility
1 parent 45fec3b commit e23d7a7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Editor/testing/luna_tester_engine.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#endif
2626

2727
#ifdef _WIN32
28+
#define PSAPI_VERSION 1
2829
#include <windows.h>
2930
#include <psapi.h>
3031
#include <stdio.h>
@@ -231,7 +232,7 @@ void LunaTesterEngine::init()
231232
this, &LunaTesterEngine::gameReadyReadStandardError);
232233
QObject::connect(&m_lunaGameIPC, &QProcess::readyReadStandardOutput,
233234
this, &LunaTesterEngine::gameReadyReadStandardOutput);
234-
235+
235236
QObject::connect(&g_intEngine, &IntEngineSignals::sendPlacingBlock,
236237
this, &LunaTesterEngine::sendPlacingBlock);
237238
QObject::connect(&g_intEngine, &IntEngineSignals::sendPlacingNPC,
@@ -685,7 +686,7 @@ bool LunaTesterEngine::sendItemPlacing(const QString &rawData, PendingCmd ipcPen
685686
{
686687
//{"jsonrpc": "2.0", "method": "sendItemPlacing", "params":
687688
// {"sendItemPlacing": <RAW ITEM DATA> }}
688-
689+
689690
if(!isEngineActive())
690691
return false;
691692

@@ -701,9 +702,9 @@ bool LunaTesterEngine::sendItemPlacing(const QString &rawData, PendingCmd ipcPen
701702
jsonObj["params"] = JSONparams;
702703
jsonObj["id"] = static_cast<int>(ipcPendCmd);
703704
jsonOut.setObject(jsonObj);
704-
705+
705706
LogDebug("ENGINE: Place item command: " + rawData);
706-
707+
707708
if(writeToIPC(jsonOut))
708709
{
709710
m_pendingCommands += ipcPendCmd;

0 commit comments

Comments
 (0)