[*] sleep deprived

This commit is contained in:
Reece Wilson 2022-07-21 07:34:55 +01:00
parent ec4b47c15d
commit da51aaf6a7

View File

@ -13,10 +13,6 @@ namespace Aurora::IO::IPC
{
#define AURORA_IPC_BRAND "AuroraIPC_"
// A horribly inefficient parsable handle.
// Dead simple to implement, it's 22:07, and i wanna sleep soon.
// We should text serialize a bitmap later...
IPCToken::IPCToken()
{
AuMemset(this, 0, sizeof(*this));
@ -167,7 +163,7 @@ namespace Aurora::IO::IPC
IPCHeader header;
header.bValue = AuUInt8((((in[stringOffset + 1] - 'A') & 15) << 4) |
((in[stringOffset + 0] - 'A') & 15));
((in[stringOffset + 0] - 'A') & 15));
stringOffset += 2;
if (index == 0 && header.bmHasPid)
@ -227,7 +223,10 @@ namespace Aurora::IO::IPC
IPCValue value;
value.token.pid = this->pid;
readIPC(header2, value);
if (!readIPC(header2, value))
{
return false;
}
this->values.push_back(value);
}
}
@ -235,7 +234,10 @@ namespace Aurora::IO::IPC
{
IPCValue value;
value.token.pid = this->pid;
readIPC(header, value);
if (!readIPC(header, value))
{
return false;
}
this->values.push_back(value);
}
}