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:
Anonymous275
2022-02-22 16:19:53 +02:00
parent 6dfeba1e49
commit 19d7120b13
22 changed files with 189 additions and 164 deletions

View File

@@ -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 << "\"";
}
}