pluginapi: fixup get_hash functions

This commit is contained in:
Vaxry
2023-10-29 21:21:54 +00:00
parent b95c0c318e
commit 935c90915a
2 changed files with 9 additions and 1 deletions

View File

@@ -9,6 +9,10 @@
#include <sstream>
APICALL const char* __hyprland_api_get_hash() {
return GIT_COMMIT_HASH;
}
APICALL bool HyprlandAPI::registerCallbackStatic(HANDLE handle, const std::string& event, HOOK_CALLBACK_FN* fn) {
auto* const PLUGIN = g_pPluginSystem->getPluginByHandle(handle);