From 13b07664dda41d3281d822d067173026f00eb388 Mon Sep 17 00:00:00 2001 From: Zegeri Date: Thu, 27 Sep 2018 22:05:48 +0200 Subject: [PATCH] Mark some stuff as FIXMEs for a later time --- src/xrCore/xrCore.cpp | 2 ++ src/xrEngine/EventAPI.cpp | 2 ++ src/xrEngine/mailSlot.cpp | 10 ++++++++-- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/xrCore/xrCore.cpp b/src/xrCore/xrCore.cpp index a042c5c2484..f17aae2c293 100644 --- a/src/xrCore/xrCore.cpp +++ b/src/xrCore/xrCore.cpp @@ -280,8 +280,10 @@ void xrCore::Initialize(pcstr _ApplicationName, pcstr commandLine, LogCallback c EFS._initialize(); #ifdef DEBUG #ifndef _EDITOR +#ifndef LINUX // FIXME!!! Msg("Process heap 0x%08x", GetProcessHeap()); #endif +#endif #endif // DEBUG } SetLogCB(cb); diff --git a/src/xrEngine/EventAPI.cpp b/src/xrEngine/EventAPI.cpp index 49f25273d82..d6606478ba9 100644 --- a/src/xrEngine/EventAPI.cpp +++ b/src/xrEngine/EventAPI.cpp @@ -150,8 +150,10 @@ void msParse(LPCSTR c) } if (0 == xr_stricmp(c, "quit")) { +#ifndef LINUX // FIXME!!! TerminateProcess(GetCurrentProcess(), 0); Console->Execute("quit"); +#endif } } #endif diff --git a/src/xrEngine/mailSlot.cpp b/src/xrEngine/mailSlot.cpp index b0262988d70..7de4ad8e039 100644 --- a/src/xrEngine/mailSlot.cpp +++ b/src/xrEngine/mailSlot.cpp @@ -2,13 +2,14 @@ #pragma hdrstop #ifdef DEBUG - +#ifndef LINUX // FIXME!!! static HANDLE hLocalSlot = INVALID_HANDLE_VALUE; - +#endif extern void msParse(LPCSTR cmd); void msCreate(LPCSTR name) { +#ifndef LINUX // FIXME!!! string256 fn; xr_sprintf(fn, sizeof(fn), "\\\\.\\mailslot\\%s", name); hLocalSlot = CreateMailslot(fn, @@ -18,10 +19,12 @@ void msCreate(LPCSTR name) if (hLocalSlot == INVALID_HANDLE_VALUE) return; // Msg ("* mailSLOT successfully created."); +#endif } void msRead(void) { +#ifndef LINUX // FIXME!!! DWORD cbMessage, cMessage, cbRead; BOOL fResult; LPSTR lpszBuffer; @@ -57,10 +60,12 @@ void msRead(void) if (!fResult) return; } +#endif } void msWrite(char* name, char* dest, char* msg) { +#ifndef LINUX // FIXME!!! HANDLE hFile; DWORD cbWritten; BOOL fResult; @@ -74,6 +79,7 @@ void msWrite(char* name, char* dest, char* msg) return; fResult = WriteFile(hFile, msg, (u32)lstrlen(msg) + 1, &cbWritten, (LPOVERLAPPED)NULL); fResult = CloseHandle(hFile); +#endif } #endif