[*] sleep deprived
This commit is contained in:
parent
ec4b47c15d
commit
da51aaf6a7
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user