mirror of
https://github.com/donnaskiez/ac.git
synced 2024-11-21 22:24:08 +01:00
85c6fd6665
* csq stuff * oh yea * bugfix * epicc * some formating n dat * bug fix * class changes * e * fix up some of the io stuff * fix io PLEASEEE * fff
29 lines
585 B
C++
29 lines
585 B
C++
#include "message_queue.h"
|
|
|
|
#include <Windows.h>
|
|
|
|
#define TEST_STEAM_64_ID 123456789;
|
|
|
|
client::message_queue::message_queue(LPTSTR PipeName) {
|
|
#if NO_SERVER
|
|
LOG_INFO("No_Server build used. Not opening named pipe.");
|
|
#else
|
|
this->pipe_interface = std::make_unique<client::pipe>(PipeName);
|
|
#endif
|
|
}
|
|
|
|
void client::message_queue::dequeue_message(void *Buffer, size_t Size) {
|
|
#if NO_SERVER
|
|
return;
|
|
#else
|
|
this->pipe_interface->read_pipe(Buffer, Size);
|
|
#endif
|
|
}
|
|
|
|
void client::message_queue::enqueue_message(void *Buffer, size_t Size) {
|
|
#if NO_SERVER
|
|
return;
|
|
#else
|
|
return;
|
|
#endif
|
|
}
|