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

Function GetExtensionFileStatus

core/logic/smn_core.cpp:773–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771}
772
773static cell_t GetExtensionFileStatus(IPluginContext *pContext, const cell_t *params)
774{
775 char *str;
776 pContext->LocalToString(params[1], &str);
777
778 IExtension *pExtension = extsys->FindExtensionByFile(str);
779
780 if (!pExtension)
781 {
782 return -2;
783 }
784
785 if (!pExtension->IsLoaded())
786 {
787 return -1;
788 }
789
790 char *error;
791 pContext->LocalToString(params[2], &error);
792 if (!pExtension->IsRunning(error, params[3]))
793 {
794 return 0;
795 }
796
797 return 1;
798}
799
800static cell_t FindPluginByNumber(IPluginContext *pContext, const cell_t *params)
801{

Callers

nothing calls this directly

Calls 3

FindExtensionByFileMethod · 0.80
IsLoadedMethod · 0.80
IsRunningMethod · 0.80

Tested by

no test coverage detected