From 85423b074e112f28e84f6276d31d1548906a625e Mon Sep 17 00:00:00 2001 From: Virt <41426325+VirtCode@users.noreply.github.com> Date: Sat, 6 Jul 2024 19:38:35 +0200 Subject: [PATCH] feat: show commits when missmatched headers --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 9d9c43d..aa4a5d4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,6 +11,7 @@ #include "config/config.hpp" #include "src/debug/Log.hpp" #include "src/managers/PointerManager.hpp" +#include "src/version.h" bool isEnabled() { static auto* const* PENABLED = (Hyprlang::INT* const*) getConfig(CONFIG_ENABLED); @@ -93,6 +94,7 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) { const std::string HASH = __hyprland_api_get_hash(); if (HASH != GIT_COMMIT_HASH) { HyprlandAPI::addNotification(PHANDLE, "[dynamic-cursors] Failed to load, mismatched headers!", CColor{1.0, 0.2, 0.2, 1.0}, 5000); + HyprlandAPI::addNotification(PHANDLE, std::format("[dynamic-cursors] Built with: {}, running: {}", GIT_COMMIT_HASH, HASH), CColor{1.0, 0.2, 0.2, 1.0}, 5000); throw std::runtime_error("version mismatch"); }