exposed translation natives and fixed build

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40402
This commit is contained in:
David Anderson 2007-01-27 04:21:11 +00:00
parent ad403d62a2
commit b3b1978d10
2 changed files with 16 additions and 0 deletions

View File

@ -737,6 +737,16 @@ SMCParseResult CTranslator::ReadSMC_KeyValue(const char *key, const char *value,
return SMCParse_Continue;
}
CPhraseFile *CTranslator::GetFileByIndex(unsigned int index)
{
if (index >= m_Files.size())
{
return NULL;
}
return m_Files[index];
}
size_t CTranslator::Translate(char *buffer, size_t maxlength, void **params, const Translation *pTrans)
{
void *new_params[MAX_TRANSLATE_PARAMS];

View File

@ -27,3 +27,9 @@ static cell_t sm_LoadTranslations(IPluginContext *pCtx, const cell_t *params)
return 1;
}
REGISTER_NATIVES(langNativeS)
{
{"LoadTranslations", sm_LoadTranslations},
{NULL, NULL},
};