MCPcopy Create free account
hub / github.com/SpartanJ/eepp / reload

Method reload

src/tools/ecode/plugins/pluginmanager.cpp:86–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86bool PluginManager::reload( const std::string& id ) {
87 if ( !isPluginReloadEnabled() ) {
88 Log::warning( "PluginManager: tried to reload a plugin but plugin reload is not enabled." );
89 return false;
90 }
91 if ( isEnabled( id ) ) {
92 Log::warning( "PluginManager: reloading plugin %s from process %u", id.c_str(),
93 Sys::getProcessID() );
94 setEnabled( id, false );
95 setEnabled( id, true );
96 return true;
97 }
98 Log::warning( "PluginManager: tried to reload a plugin but plugin is not enabled." );
99 return false;
100}
101
102const std::string& PluginManager::getResourcesPath() const {
103 return mResourcesPath;

Callers 5

createDocDirtyAlertMethod · 0.45
onCodeEditorCreatedMethod · 0.45
onFileSystemEventMethod · 0.45
onRegisterMethod · 0.45
inputMethod · 0.45

Calls 3

warningFunction · 0.85
isEnabledFunction · 0.85
c_strMethod · 0.80

Tested by 1

inputMethod · 0.36