MCPcopy Create free account
hub / github.com/SapphireServer/Sapphire / isModuleLoaded

Method isModuleLoaded

src/world/Script/ScriptLoader.cpp:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150bool Sapphire::Scripting::ScriptLoader::isModuleLoaded( std::string name )
151{
152 for( auto it = m_scriptMap.begin(); it != m_scriptMap.end(); ++it )
153 {
154
155 if( Common::Util::toLowerCopy( it->second->library_name ) == Common::Util::toLowerCopy( name ) )
156 return true;
157 }
158
159 return false;
160}
161
162Sapphire::Scripting::ScriptInfo* Sapphire::Scripting::ScriptLoader::getScriptInfo( std::string name )
163{

Callers 1

watchDirectoriesMethod · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected