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:
@@ -58,6 +58,7 @@ ITextParsers *textparsers;
|
||||
SM_FN_CRC32 UTIL_CRC32;
|
||||
IMemoryUtils *memutils;
|
||||
sm_logic_t logicore;
|
||||
ITranslator *translator;
|
||||
|
||||
class VEngineServer_Logic : public IVEngineServer_Logic
|
||||
{
|
||||
@@ -136,6 +137,7 @@ static sm_core_t core_bridge =
|
||||
UTIL_Format,
|
||||
UTIL_ReplaceAll,
|
||||
generate_error,
|
||||
gnprintf,
|
||||
&serverGlobals
|
||||
};
|
||||
|
||||
@@ -161,6 +163,7 @@ void InitLogicBridge()
|
||||
g_pSourcePawn2->SetProfiler(logicore.profiler);
|
||||
UTIL_CRC32 = logicore.CRC32;
|
||||
memutils = logicore.memutils;
|
||||
translator = logicore.translator;
|
||||
}
|
||||
|
||||
bool StartLogicBridge(char *error, size_t maxlength)
|
||||
|
||||
Reference in New Issue
Block a user