Skip to content

Commit

Permalink
Mark some stuff as FIXMEs for a later time
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegeri authored and q4a committed Sep 27, 2018
1 parent 635f82a commit 13b0766
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/xrCore/xrCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions src/xrEngine/EventAPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions src/xrEngine/mailSlot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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

0 comments on commit 13b0766

Please sign in to comment.