1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: Don't try to initialize plugins that failed to load

This commit is contained in:
WerWolv 2023-06-18 10:18:41 +02:00
parent c2e023f567
commit 03f377bf40

View File

@ -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);