Moved CRC32 from core to logic (no bug, r=me).

This commit is contained in:
David Anderson
2010-01-18 03:08:52 -08:00
parent 5e48b49b7e
commit 94d01e9e5a
13 changed files with 19 additions and 151 deletions
+2 -1
View File
@@ -29,7 +29,8 @@ files = [
'smn_textparse.cpp',
'smn_adt_trie.cpp',
'Profiler.cpp',
'smn_functions.cpp'
'smn_functions.cpp',
'sm_crc32.cpp'
]
if AMBuild.target['platform'] == 'windows':
files.append('thread/WinThreads.cpp')
+2 -1
View File
@@ -25,7 +25,8 @@ OBJECTS = \
smn_textparse.cpp \
smn_adt_trie.cpp \
Profiler.cpp \
smn_functions.cpp
smn_functions.cpp \
sm_crc32.cpp
##############################################
### CONFIGURE ANY OTHER FLAGS/OPTIONS HERE ###
+3 -1
View File
@@ -36,6 +36,7 @@
#include "ThreadSupport.h"
#include "TextParsers.h"
#include "Profiler.h"
#include "sm_crc32.h"
sm_core_t smcore;
IHandleSys *handlesys;
@@ -54,7 +55,8 @@ static sm_logic_t logic =
{
NULL,
g_pThreader,
sm_profiler
sm_profiler,
UTIL_CRC32
};
static void logic_init(const sm_core_t* core, sm_logic_t* _logic)
+2 -1
View File
@@ -42,7 +42,7 @@ using namespace SourceMod;
* Add 1 to the RHS of this expression to bump the intercom file
* This is to prevent mismatching core/logic binaries
*/
#define SM_LOGIC_MAGIC (0x0F47C0DE - 2)
#define SM_LOGIC_MAGIC (0x0F47C0DE - 3)
#if defined SM_LOGIC
class IVEngineServer
@@ -96,6 +96,7 @@ struct sm_logic_t
SMGlobalClass *head;
IThreader *threader;
IProfiler *profiler;
unsigned int (*CRC32)(const void *, size_t);
};
typedef void (*LogicInitFunction)(const sm_core_t *core, sm_logic_t *logic);