From 4c06fd2fb83109a051415677da06053356045149 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 26 Jan 2024 21:11:56 +0100 Subject: [PATCH] impr: Allow plugins to be loaded in debug builds --- lib/libimhex/source/api/plugin_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libimhex/source/api/plugin_manager.cpp b/lib/libimhex/source/api/plugin_manager.cpp index cee3eef6e..761de70d4 100644 --- a/lib/libimhex/source/api/plugin_manager.cpp +++ b/lib/libimhex/source/api/plugin_manager.cpp @@ -107,7 +107,8 @@ namespace hex { const auto requestedVersion = getCompatibleVersion(); - if (requestedVersion != ImHexApi::System::getImHexVersion()) { + const auto imhexVersion = ImHexApi::System::getImHexVersion(); + if (!imhexVersion.starts_with(requestedVersion)) { if (requestedVersion.empty()) { log::warn("Plugin '{}' did not specify a compatible version, assuming it is compatible with the current version of ImHex.", wolv::util::toUTF8String(m_path.filename())); } else {