Basic debugging working.

This commit is contained in:
Martín Lucas Golini
2025-01-04 15:43:54 -03:00
parent c4bd88461d
commit df65ec78c3
18 changed files with 456 additions and 157 deletions

View File

@@ -45,6 +45,10 @@ PluginManager* Plugin::getManager() const {
return mManager;
}
PluginContextProvider* Plugin::getPluginContext() const {
return mManager ? mManager->getPluginContext() : nullptr;
}
UISceneNode* Plugin::getUISceneNode() const {
return mManager->getUISceneNode();
}
@@ -117,8 +121,8 @@ void Plugin::setReady( Time loadTime ) {
PluginBase::~PluginBase() {
mShuttingDown = true;
unsubscribeFileSystemListener();
for ( auto editor : mEditors ) {
onBeforeUnregister( editor.first );
for ( auto listener : editor.second )
editor.first->removeEventListener( listener );
editor.first->unregisterPlugin( this );