mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-10 01:36:16 +00:00
lots of work, added atomic queue, changed githuyb workflows and added patterns with memory functions. Changed from MS Detours to MinHook.
now works with lua prototype
This commit is contained in:
@@ -33,6 +33,7 @@ Launcher::Launcher(int argc, char* argv[]) : CurrentPath(std::filesystem::path(a
|
||||
|
||||
void Launcher::Abort() {
|
||||
Shutdown.store(true);
|
||||
ServerHandler.Close();
|
||||
if(DiscordRPC.joinable()) {
|
||||
DiscordRPC.join();
|
||||
}
|
||||
@@ -145,10 +146,10 @@ void Launcher::ListenIPC() {
|
||||
void Launcher::SendIPC(const std::string& Data, bool core) {
|
||||
static std::mutex Lock;
|
||||
std::scoped_lock Guard(Lock);
|
||||
if(core) {
|
||||
IPCToGame.send("C" + Data);
|
||||
} else {
|
||||
IPCToGame.send("G" + Data);
|
||||
if(core)IPCToGame.send("C" + Data);
|
||||
else IPCToGame.send("G" + Data);
|
||||
if(IPCToGame.send_timed_out()) {
|
||||
LOG(WARNING) << "Timed out while sending \"" << Data << "\"";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user