1.1 --- a/sourcemm/sourcemm.cpp Fri Apr 06 21:01:43 2007 +0000
1.2 +++ b/sourcemm/sourcemm.cpp Sat Apr 07 04:31:23 2007 +0000
1.3 @@ -58,7 +58,8 @@
1.4 SourceHook::List<GameDllInfo *> gamedll_list;
1.5 SourceHook::CallClass<IServerGameDLL> *g_GameDllPatch;
1.6 int g_GameDllVersion = 0;
1.7 -const char VSPIFACE[] = "ISERVERPLUGINCALLBACKS";
1.8 +const char VSPIFACE_001[] = "ISERVERPLUGINCALLBACKS001";
1.9 +const char VSPIFACE_002[] = "ISERVERPLUGINCALLBACKS002";
1.10 const char GAMEINFO_PATH[] = "|gameinfo_path|";
1.11
1.12 void ClearGamedllList();
1.13 @@ -226,13 +227,16 @@
1.14 return NULL;
1.15 }
1.16
1.17 - if (strncmp(iface, VSPIFACE, 22) == 0)
1.18 + /* We check these separately because we can't reply
1.19 + * unless our interface version really matches.
1.20 + */
1.21 + if ((strcmp(iface, VSPIFACE_002) == 0)
1.22 + || strcmp(iface, VSPIFACE_001) == 0)
1.23 {
1.24 if (ret)
1.25 {
1.26 *ret = IFACE_OK;
1.27 }
1.28 -
1.29 return &g_VspListener;
1.30 }
1.31