added blocking WaitForGame using PID

This commit is contained in:
Anonymous275
2022-01-19 01:56:48 +02:00
parent 48e6b21eda
commit 046695d37d
6 changed files with 71 additions and 5 deletions

View File

@@ -26,6 +26,7 @@ public: //available functions
std::string Login(const std::string& fields);
void RunDiscordRPC();
void QueryRegistry();
void WaitForGame();
void LoadConfig();
void LaunchGame();
void CheckKey();
@@ -41,6 +42,7 @@ private: //functions
void UpdateCheck();
void Relaunch();
private: //variables
size_t GamePID{0};
bool EnableUI = true;
bool Shutdown = false;
bool LoginAuth = false;

12
include/Memory.h Normal file
View File

@@ -0,0 +1,12 @@
///
/// Created by Anonymous275 on 6/17/21
/// Copyright (c) 2021-present Anonymous275 read the LICENSE file for more info.
///
#include <cstdint>
class Memory {
public:
static size_t GetProcessID(const char* PName);
static size_t GetModuleBase(const char* Name);
};