mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-04-12 10:46:03 +00:00
added blocking WaitForGame using PID
This commit is contained in:
@@ -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
12
include/Memory.h
Normal 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);
|
||||
};
|
||||
Reference in New Issue
Block a user