Move translator from logic to core (bug 4406 part 6, r=ds).
--HG-- rename : core/PhraseCollection.cpp => core/logic/PhraseCollection.cpp rename : core/PhraseCollection.h => core/logic/PhraseCollection.h rename : core/Translator.cpp => core/logic/Translator.cpp rename : core/Translator.h => core/logic/Translator.h rename : core/sm_memtable.h => core/logic/sm_memtable.h rename : core/smn_lang.cpp => core/logic/smn_lang.cpp
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
#include "sm_crc32.h"
|
||||
#include "MemoryUtils.h"
|
||||
#include "stringutil.h"
|
||||
#include "Translator.h"
|
||||
|
||||
sm_core_t smcore;
|
||||
IHandleSys *handlesys;
|
||||
@@ -58,14 +59,22 @@ IPlayerManager *playerhelpers;
|
||||
IAdminSystem *adminsys;
|
||||
IGameHelpers *gamehelpers;
|
||||
|
||||
static void AddCorePhraseFile(const char *filename)
|
||||
{
|
||||
g_pCorePhrases->AddPhraseFile("antiflood.phrases");
|
||||
}
|
||||
|
||||
static sm_logic_t logic =
|
||||
{
|
||||
NULL,
|
||||
g_pThreader,
|
||||
sm_profiler,
|
||||
&g_MemUtils,
|
||||
&g_Translator,
|
||||
UTIL_CRC32,
|
||||
stristr
|
||||
stristr,
|
||||
CoreTranslate,
|
||||
AddCorePhraseFile
|
||||
};
|
||||
|
||||
static void logic_init(const sm_core_t* core, sm_logic_t* _logic)
|
||||
|
||||
Reference in New Issue
Block a user