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:
David Anderson
2010-05-14 19:43:53 -07:00
parent 721dae3892
commit 9137e92c09
27 changed files with 353 additions and 158 deletions
+3
View File
@@ -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)