- Changed BlackList to std::set

This commit is contained in:
Anonymous275
2022-07-25 17:17:10 +03:00
parent 8f53052356
commit b27c2060ea
3 changed files with 8 additions and 8 deletions

View File

@@ -105,11 +105,11 @@ void Launcher::LaunchGame() {
void Launcher::WaitForGame() {
LOG(INFO) << "Searching for a game process, please start BeamNG manually in case of steam issues";
std::vector<uint32_t> BlackList;
std::set<uint32_t> BlackList;
do {
auto PID = Memory::GetBeamNGPID(BlackList);
if(PID != 0 && IPC::mem_used(PID)) {
BlackList.emplace_back(PID);
BlackList.emplace(PID);
} else {
GamePID = PID;
}