mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-21 18:25:58 +01:00
csgo-vulkan-fix: throw a runtime_error on failed hooks
This commit is contained in:
parent
7f07d10ed8
commit
7ddc207857
1 changed files with 3 additions and 1 deletions
|
@ -100,8 +100,10 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
|
|||
|
||||
if (hkResult)
|
||||
HyprlandAPI::addNotification(PHANDLE, "[csgo-vulkan-fix] Initialized successfully! (CS2 version)", CColor{0.2, 1.0, 0.2, 1.0}, 5000);
|
||||
else
|
||||
else {
|
||||
HyprlandAPI::addNotification(PHANDLE, "[csgo-vulkan-fix] Failure in initialization (hook failed)!", CColor{1.0, 0.2, 0.2, 1.0}, 5000);
|
||||
throw std::runtime_error("[csgo-vk-fix] Hooks failed");
|
||||
}
|
||||
|
||||
return {"csgo-vulkan-fix", "A plugin to fix incorrect mouse offsets on csgo in Vulkan", "Vaxry", "1.1"};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue