GlosSITarget: Don't try to unpatch CreateProcess hook if no launch requested

pull/183/head
Peter Repukat 2 years ago
parent f2e5d3f7f8
commit b8ab3be27d

@ -35,7 +35,10 @@ AppLauncher::AppLauncher(
std::function<void()> shutdown) : process_hwnds_(process_hwnds), shutdown_(std::move(shutdown))
{
#ifdef _WIN32
UnPatchValveHooks();
if (Settings::launch.launch) {
spdlog::debug("App launch requested");
UnPatchValveHooks();
}
#endif
};

Loading…
Cancel
Save