added checks

This commit is contained in:
Anonymous275
2020-06-22 19:00:11 +03:00
parent 050db169f5
commit e72a1b6213
5 changed files with 21 additions and 14 deletions

View File

@@ -4,6 +4,7 @@
#include "Memory.hpp"
#include <iostream>
#include <thread>
extern std::string MStatus;
extern bool MPDEV;
Memory Game;
std::string GameVer(HANDLE processHandle, long long Address){
@@ -34,7 +35,7 @@ void SetPID(DWORD PID){
while(true){
Map = LoadedMap(processHandle,Lib1);
if(!Map.empty() && Map != "-1" && Map.find("/info.json") != std::string::npos && Map != Temp){
std::cout << "You just loaded: " << Map << std::endl;
if(MStatus.find(Map) == std::string::npos)exit(5);
Temp = Map;
}
Map.clear();