exposed translation natives and fixed build
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40402
This commit is contained in:
parent
ad403d62a2
commit
b3b1978d10
@ -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];
|
||||
|
@ -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},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user