| 877 | } |
| 878 | |
| 879 | void PluginManager::init() |
| 880 | { |
| 881 | loadAll(); |
| 882 | |
| 883 | bool any_loaded = false; |
| 884 | for (auto& p : all_plugins) |
| 885 | { |
| 886 | if (p.second->getState() == Plugin::PS_LOADED) |
| 887 | { |
| 888 | any_loaded = true; |
| 889 | break; |
| 890 | } |
| 891 | } |
| 892 | if (!any_loaded && !listPlugins().empty()) |
| 893 | { |
| 894 | Core::printerr("\n" |
| 895 | "All plugins present failed to load.\n" |
| 896 | "If you are using Windows XP, this is probably due to a Visual Studio 2015 bug.\n" |
| 897 | "Windows XP is unsupported by Microsoft as of 2014, so we do not support it.\n\n" |
| 898 | "If this was unexpected and you are not using Windows XP, please report this.\n\n" |
| 899 | ); |
| 900 | } |
| 901 | } |
| 902 | |
| 903 | bool PluginManager::addPlugin(string name) |
| 904 | { |
no test coverage detected