GET_V_IFACE_* will work from SDK_OnMetamodLoad now

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40682
This commit is contained in:
David Anderson 2007-04-09 03:05:53 +00:00
parent 4c3d5673e6
commit 3bec29a1fe
4 changed files with 5 additions and 4 deletions

View File

@ -9,3 +9,4 @@
Sample g_Sample; /**< Global singleton for your extension's main interface */ Sample g_Sample; /**< Global singleton for your extension's main interface */
SMEXT_LINK(&g_Sample); SMEXT_LINK(&g_Sample);

View File

@ -58,7 +58,7 @@ public:
* Read smext_base.h for documentation on these. * Read smext_base.h for documentation on these.
*/ */
//virtual bool SDK_OnMetamodLoad(char *error, size_t err_max, bool late); //virtual bool SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlen, bool late);
//virtual bool SDK_OnMetamodUnload(char *error, size_t err_max); //virtual bool SDK_OnMetamodUnload(char *error, size_t err_max);
//virtual bool SDK_OnMetamodPauseChange(bool paused, char *error, size_t err_max); //virtual bool SDK_OnMetamodPauseChange(bool paused, char *error, size_t err_max);
#endif #endif

View File

@ -198,7 +198,7 @@ bool SDKExtension::Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlen,
m_SourceMMLoaded = true; m_SourceMMLoaded = true;
return SDK_OnMetamodLoad(error, maxlen, late); return SDK_OnMetamodLoad(ismm, error, maxlen, late);
} }
bool SDKExtension::Unload(char *error, size_t maxlen) bool SDKExtension::Unload(char *error, size_t maxlen)
@ -287,7 +287,7 @@ const char *SDKExtension::GetVersion()
return GetExtensionVerString(); return GetExtensionVerString();
} }
bool SDKExtension::SDK_OnMetamodLoad(char *error, size_t err_max, bool late) bool SDKExtension::SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlen, bool late)
{ {
return true; return true;
} }

View File

@ -82,7 +82,7 @@ public:
* @param late Whether or not Metamod considers this a late load. * @param late Whether or not Metamod considers this a late load.
* @return True to succeed, false to fail. * @return True to succeed, false to fail.
*/ */
virtual bool SDK_OnMetamodLoad(char *error, size_t err_max, bool late); virtual bool SDK_OnMetamodLoad(ISmmAPI *ismm, char *error, size_t maxlen, bool late);
/** /**
* @brief Called when Metamod is detaching, after the extension version is called. * @brief Called when Metamod is detaching, after the extension version is called.