1.1 --- a/sourcemm/sourcemm.cpp Sat Apr 16 20:26:33 2005 +0000
1.2 +++ b/sourcemm/sourcemm.cpp Sat Apr 16 23:33:39 2005 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /* ======== SourceMM ========
1.5 -* Copyright (C) 2004-2005 SourceMM Development Team
1.6 +* Copyright (C) 2004-2005 Metamod:Source Development Team
1.7 * No warranties of any kind
1.8 *
1.9 * License: zlib/libpng
1.10 @@ -16,6 +16,8 @@
1.11 #include "CServerGameClients.h"
1.12 #include "CHLTVDirector.h"
1.13 #include "concommands.h"
1.14 +#include "CSmmAPI.h"
1.15 +#include "util.h"
1.16
1.17 /**
1.18 * @brief Implementation of main SourceMM GameDLL functionality
1.19 @@ -84,9 +86,7 @@
1.20 return NULL;
1.21 }
1.22 } else {
1.23 - void *d = (g_GameDll.factory)(name, ret);
1.24 -
1.25 - return d;
1.26 + META_INTERFACE_MACRO(server, g_GameDll.factory);
1.27 }
1.28 }
1.29
1.30 @@ -179,6 +179,7 @@
1.31 return false;
1.32 }
1.33
1.34 + //Retrieve the pointers we'll need from the GameDLL
1.35 IServerGameEnts *serverEnts;
1.36 IServerGameClients *serverClients;
1.37 IHLTVDirector *serverHLTV;
1.38 @@ -346,21 +347,21 @@
1.39 // the engine's real engineFactory.
1.40 void *EngineFactory(const char *name, int *ret)
1.41 {
1.42 - return (g_Engine.engineFactory)(name, ret);
1.43 + META_INTERFACE_MACRO(engine, g_Engine.engineFactory);
1.44 }
1.45
1.46 //Wrapper function. This is called when the GameDLL thinks it's using
1.47 // the engine's real physicsFactory.
1.48 void *PhysicsFactory(const char *name, int *ret)
1.49 {
1.50 - return (g_Engine.physicsFactory)(name, ret);
1.51 + META_INTERFACE_MACRO(physics, g_Engine.physicsFactory);
1.52 }
1.53
1.54 //Wrapper function. This is called when the GameDLL thinks it's using
1.55 // the engine's real fileSystemFactory.
1.56 void *FileSystemFactory(const char *name, int *ret)
1.57 {
1.58 - return (g_Engine.fileSystemFactory)(name, ret);
1.59 + META_INTERFACE_MACRO(fileSystem, g_Engine.fileSystemFactory);
1.60 }
1.61
1.62 void LogMessage(const char *msg, ...)