GlosSITarget: HidHide: Don't do shit if HideDevices is disabled.

pull/184/head
Peter Repukat 2 years ago
parent 1e89797ce7
commit 6a13b23783

@ -68,6 +68,10 @@ void HidHide::closeCtrlDevice()
void HidHide::hideDevices(const std::filesystem::path& steam_path)
{
if (!Settings::devices.hideDevices) {
spdlog::info("Hiding devices is disabled; Not un-patching valve hooks, not looking for HidHide");
return;
}
UnPatchValveHooks();
openCtrlDevice();

Loading…
Cancel
Save