示例#1
0
int32_t CCmdHandler::LoadConfig(const char *pConfigName, const char *pFileContent)
{
	int32_t nResult = 0;
	IConfig *pConfig = g_Frame.GetSafeConfig(pConfigName);
	if(pConfig != NULL)
	{
		nResult = pConfig->Parser((char *)pFileContent);
	}
	else
	{
		nResult = -1;
	}
	return nResult;
}