mirror of
https://github.com/BeamMP/BeamMP-Launcher.git
synced 2026-06-22 08:31:07 +00:00
Minor edit
This commit is contained in:
+2
-1
@@ -98,13 +98,14 @@ void Launcher::LaunchGame() {
|
|||||||
LOG(WARNING) << "BeamNG V" << BeamVersion << " is slightly older than recommended, this might cause issues!";
|
LOG(WARNING) << "BeamNG V" << BeamVersion << " is slightly older than recommended, this might cause issues!";
|
||||||
}
|
}
|
||||||
if(Memory::GetBeamNGPID({}) == 0) {
|
if(Memory::GetBeamNGPID({}) == 0) {
|
||||||
|
LOG(INFO) << "Launching BeamNG from steam";
|
||||||
ShellExecuteA(nullptr, nullptr, "steam://rungameid/284160", nullptr, nullptr, SW_SHOWNORMAL);
|
ShellExecuteA(nullptr, nullptr, "steam://rungameid/284160", nullptr, nullptr, SW_SHOWNORMAL);
|
||||||
//ShowWindow(GetConsoleWindow(), HIDE_WINDOW);
|
//ShowWindow(GetConsoleWindow(), HIDE_WINDOW);
|
||||||
}
|
}
|
||||||
|
LOG(INFO) << "Waiting for a game process, please start BeamNG manually in case of steam issues";
|
||||||
}
|
}
|
||||||
|
|
||||||
void Launcher::WaitForGame() {
|
void Launcher::WaitForGame() {
|
||||||
LOG(INFO) << "Searching for a game process, please start BeamNG manually in case of steam issues";
|
|
||||||
std::set<uint32_t> BlackList;
|
std::set<uint32_t> BlackList;
|
||||||
do {
|
do {
|
||||||
auto PID = Memory::GetBeamNGPID(BlackList);
|
auto PID = Memory::GetBeamNGPID(BlackList);
|
||||||
|
|||||||
Reference in New Issue
Block a user