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

Method queueScriptReload

src/world/Script/NativeScriptMgr.cpp:74–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 void NativeScriptMgr::queueScriptReload( const std::string& name )
75 {
76 auto info = m_loader.getScriptInfo( name );
77 if( !info )
78 return;
79
80 // backup actual lib path
81 std::string libPath( info->library_path );
82
83 if( !unloadScript( info ) )
84 return;
85
86 m_scriptLoadQueue.push( libPath );
87 }
88
89 void NativeScriptMgr::processLoadQueue()
90 {

Callers 2

watchDirectoriesMethod · 0.80
scriptMethod · 0.80

Calls 2

getScriptInfoMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected