mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Don't try to initialize plugins that failed to load
This commit is contained in:
@@ -69,6 +69,9 @@ namespace hex {
|
||||
}
|
||||
|
||||
bool Plugin::initializePlugin() const {
|
||||
if (this->m_handle == nullptr)
|
||||
return false;
|
||||
|
||||
const auto requestedVersion = getCompatibleVersion();
|
||||
if (requestedVersion != IMHEX_VERSION) {
|
||||
log::error("Refused to load plugin '{}' which was built for a different version of ImHex: '{}'", wolv::util::toUTF8String(this->m_path.filename()), requestedVersion);
|
||||
|
||||
Reference in New Issue
Block a user