Skip to content

Commit

Permalink
impr: Allow plugins to be loaded in debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Jan 26, 2024
1 parent f5c529b commit 4c06fd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/libimhex/source/api/plugin_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4c06fd2

Please sign in to comment.