MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / LoadMMSPlugin

Method LoadMMSPlugin

core/logic_bridge.cpp:622–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620}
621
622int CoreProviderImpl::LoadMMSPlugin(const char *file, bool *ok, char *error, size_t maxlength)
623{
624 bool ignore_already;
625 PluginId id = g_pMMPlugins->Load(file, g_PLID, ignore_already, error, maxlength);
626
627 Pl_Status status;
628
629 if (!id || (g_pMMPlugins->Query(id, NULL, &status, NULL) && status < Pl_Paused))
630 {
631 *ok = false;
632 }
633 else
634 {
635 *ok = true;
636 }
637
638 return id;
639}
640
641void CoreProviderImpl::UnloadMMSPlugin(int id)
642{

Callers 1

LoadMethod · 0.80

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected