1
0
mirror of synced 2024-11-24 15:50:16 +01:00

impr: Allow plugins to be loaded in debug builds

This commit is contained in:
WerWolv 2024-01-26 21:11:56 +01:00
parent f5c529b2b3
commit 4c06fd2fb8

View File

@ -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 {