1.1 --- a/cssdm_main.cpp Tue Jun 26 17:05:19 2007 +0000
1.2 +++ b/cssdm_main.cpp Tue Jun 26 17:06:56 2007 +0000
1.3 @@ -243,3 +243,23 @@
1.4
1.5 return true;
1.6 }
1.7 +
1.8 +bool Deathmatch::QueryInterfaceDrop(SMInterface *pInterface)
1.9 +{
1.10 + if (pInterface == bintools)
1.11 + {
1.12 + return false;
1.13 + }
1.14 +
1.15 + return true;
1.16 +}
1.17 +
1.18 +void Deathmatch::NotifyInterfaceDrop(SMInterface *pInterface)
1.19 +{
1.20 + /* We have to take care of bintools early then... */
1.21 + if (pInterface == bintools)
1.22 + {
1.23 + ShutdownUtils();
1.24 + bintools = NULL;
1.25 + }
1.26 +}
2.1 --- a/cssdm_main.h Tue Jun 26 17:05:19 2007 +0000
2.2 +++ b/cssdm_main.h Tue Jun 26 17:06:56 2007 +0000
2.3 @@ -48,6 +48,8 @@
2.4 virtual void SDK_OnAllLoaded();
2.5 //virtual void SDK_OnPauseChange(bool paused);
2.6 virtual bool QueryRunning(char *error, size_t maxlength);
2.7 + bool QueryInterfaceDrop(SMInterface *pInterface);
2.8 + void NotifyInterfaceDrop(SMInterface *pInterface);
2.9 public:
2.10 virtual bool SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlength, bool late);
2.11 //virtual bool SDK_OnMetamodUnload(char *error, size_t maxlength);