fix: Don't try to initialize plugins that failed to load
This commit is contained in:
parent
c2e023f567
commit
03f377bf40
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user