mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-21 18:25:58 +01:00
hyprexpo: fix finding func
This commit is contained in:
parent
61656eb7d6
commit
135de7b886
1 changed files with 3 additions and 3 deletions
|
@ -183,10 +183,10 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
|
|||
|
||||
g_pAddDamageHookB = HyprlandAPI::createFunctionHook(PHANDLE, FNS[0].address, (void*)hkAddDamageB);
|
||||
|
||||
FNS = HyprlandAPI::findFunctionsByName(PHANDLE, "addDamageEPK4CBox");
|
||||
FNS = HyprlandAPI::findFunctionsByName(PHANDLE, "addDamageEPKN9Hyprutils4Math4CBoxE");
|
||||
if (FNS.empty()) {
|
||||
failNotif("no fns for hook addDamageEPK4CBox");
|
||||
throw std::runtime_error("[he] No fns for hook addDamageEPK4CBox");
|
||||
failNotif("no fns for hook addDamageEPKN9Hyprutils4Math4CBoxE");
|
||||
throw std::runtime_error("[he] No fns for hook addDamageEPKN9Hyprutils4Math4CBoxE");
|
||||
}
|
||||
|
||||
g_pAddDamageHookA = HyprlandAPI::createFunctionHook(PHANDLE, FNS[0].address, (void*)hkAddDamageA);
|
||||
|
|
Loading…
Reference in a new issue