Merge remote-tracking branch 'DFHack/develop' into RemoteServerUnsafe

develop
Japa 2018-02-13 12:26:36 +05:30
commit 5dc89fee38
1 changed files with 19 additions and 0 deletions

@ -797,6 +797,25 @@ PluginManager::~PluginManager()
void PluginManager::init() void PluginManager::init()
{ {
loadAll(); loadAll();
bool any_loaded = false;
for (auto p : all_plugins)
{
if (p.second->getState() == Plugin::PS_LOADED)
{
any_loaded = true;
break;
}
}
if (!any_loaded && !listPlugins().empty())
{
Core::printerr("\n"
"All plugins present failed to load.\n"
"If you are using Windows XP, this is probably due to a Visual Studio 2015 bug.\n"
"Windows XP is unsupported by Microsoft as of 2014, so we do not support it.\n\n"
"If this was unexpected and you are not using Windows XP, please report this.\n\n"
);
}
} }
bool PluginManager::addPlugin(string name) bool PluginManager::addPlugin(string name)