Sources/CryGame C++/Solution1/CryGame/ScriptObjectLanguage.cpp
//////////////////////////////////////////////////////////////////////
/*! load a string table from disk and add all contents into the global string table
		@param sString the file path of the string table
		@return !=nil(succeded) nil(failed)
*/
load a string table from disk and add all contents into the global string table
@param sString the file path of the string table
@return !=nil(succeded) nil(failed)
load a string table from disk and add all contents into the global string table @param sString the file path of the string table @return ! = nil ( succeded ) nil ( failed )
int CScriptObjectLanguage::LoadStringTable(IFunctionHandler *pH)
{
	if (pH->GetParamCount()!=1)
	{
		m_pScriptSystem->RaiseError("Language::LoadStringTable wrong number of parameters");
		pH->EndFunctionNull();
	}
	const char *sString;
	pH->GetParam(1, sString);				
	if(!sString)
		return pH->EndFunctionNull();
	return pH->EndFunction(m_pMgr->LoadStringTable(sString));
}
int CScriptObjectLanguage :: LoadStringTable ( IFunctionHandler * pH ) { if ( pH -> GetParamCount ( ) != 1 ) { m_pScriptSystem -> RaiseError ( " " ) ; pH -> EndFunctionNull ( ) ; } const char * sString ; pH -> GetParam ( 1 , sString ) ; if ( ! sString ) return pH -> EndFunctionNull ( ) ; return pH -> EndFunction ( m_pMgr -> LoadStringTable ( sString ) ) ; }
load a string table from disk and add all contents into the global string table
@param sString the file path of the string table
@return !=nil(succeded) nil(failed)
load a string table from disk and add all contents into the global string table @param sString the file path of the string table @return ! = nil ( succeded ) nil ( failed )
// don't check for return - sString still might be 0
