add dedicated stopAll()
should not change abi
This commit is contained in:
@@ -26,10 +26,7 @@ void g_provideInstance__internal(const char* id, const char* version, const char
|
||||
} // extern C
|
||||
|
||||
PluginManager::~PluginManager(void) {
|
||||
// destruct in reverse!
|
||||
for (auto it = _plugins.rbegin(); it != _plugins.rend(); it++) {
|
||||
it->stop();
|
||||
}
|
||||
stopAll();
|
||||
}
|
||||
|
||||
bool PluginManager::add(const std::string& plug_path) {
|
||||
@@ -48,6 +45,13 @@ bool PluginManager::add(const std::string& plug_path) {
|
||||
return true;
|
||||
}
|
||||
|
||||
void PluginManager::stopAll(void) {
|
||||
// destruct in reverse!
|
||||
for (auto it = _plugins.rbegin(); it != _plugins.rend(); it++) {
|
||||
it->stop();
|
||||
}
|
||||
}
|
||||
|
||||
float PluginManager::tick(float delta) {
|
||||
float min_interval {std::numeric_limits<float>::max()};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user