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

Function SQL_CheckConfig

core/logic/smn_database.cpp:1425–1431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1423}
1424
1425static cell_t SQL_CheckConfig(IPluginContext *pContext, const cell_t *params)
1426{
1427 char *name;
1428 pContext->LocalToString(params[1], &name);
1429
1430 return (g_DBMan.GetDatabaseConf(name) != nullptr) ? 1 : 0;
1431}
1432
1433static cell_t SQL_ConnectCustom(IPluginContext *pContext, const cell_t *params)
1434{

Callers

nothing calls this directly

Calls 1

GetDatabaseConfMethod · 0.45

Tested by

no test coverage detected