diff --git a/source/window.cpp b/source/window.cpp index a123b64c8..1f2f38f59 100644 --- a/source/window.cpp +++ b/source/window.cpp @@ -376,7 +376,10 @@ namespace hex { } void Window::initPlugins() { - PluginHandler::load((std::filesystem::path(mainArgv[0]).parent_path() / "plugins").string()); + try { + auto pluginFolderPath = std::filesystem::path(mainArgv[0]).parent_path() / "plugins"; + PluginHandler::load(pluginFolderPath.string()); + } catch (std::runtime_error &e) { return; } for (const auto &plugin : PluginHandler::getPlugins()) { plugin.initializePlugin(SharedData::get());