mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Commands that setup init events not working anymore
This commit is contained in:
@@ -74,9 +74,11 @@ namespace hex::init {
|
||||
// Process the arguments
|
||||
hex::subcommands::processArguments(args);
|
||||
|
||||
// Unload plugins again
|
||||
EventManager::clear();
|
||||
PluginManager::unload();
|
||||
// Explicitly don't unload plugins again here.
|
||||
// Certain CLI commands configure things inside of plugins and then let ImHex start up normally
|
||||
// If plugins were to be unloaded here, this setup would be reset.
|
||||
// PluginManager::load() will be executed again later on, but it will not load any more plugins into the
|
||||
// address space. But they will be properly initialized at that point.
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user