1.1 --- a/core/systems/PluginSys.cpp Thu Jan 25 01:59:37 2007 +0000
1.2 +++ b/core/systems/PluginSys.cpp Thu Jan 25 02:10:43 2007 +0000
1.3 @@ -238,7 +238,7 @@
1.4 m_status = Plugin_Running;
1.5
1.6 cell_t result;
1.7 - IPluginFunction *pFunction = m_ctx.base->GetFunctionByName("OnPluginInit");
1.8 + IPluginFunction *pFunction = m_ctx.base->GetFunctionByName("OnPluginStart");
1.9 if (!pFunction)
1.10 {
1.11 return;
1.12 @@ -256,7 +256,7 @@
1.13 }
1.14
1.15 cell_t result;
1.16 - IPluginFunction *pFunction = m_ctx.base->GetFunctionByName("OnPluginUnload");
1.17 + IPluginFunction *pFunction = m_ctx.base->GetFunctionByName("OnPluginEnd");
1.18 if (!pFunction)
1.19 {
1.20 return;
1.21 @@ -1369,8 +1369,12 @@
1.22 assert(pl->GetStatus() != Plugin_Created);
1.23 int len = 0;
1.24 const sm_plugininfo_t *info = pl->GetPublicInfo();
1.25 -
1.26 - len += UTIL_Format(buffer, sizeof(buffer), " %02d <%s>", id, GetStatusText(pl->GetStatus()));
1.27 + if (pl->GetStatus() != Pl_Running)
1.28 + {
1.29 + len += UTIL_Format(buffer, sizeof(buffer), " %02d <%s>", id, GetStatusText(pl->GetStatus()));
1.30 + } else {
1.31 + len += UTIL_Format(buffer, sizeof(buffer), " %02d", id);
1.32 + }
1.33 len += UTIL_Format(&buffer[len], sizeof(buffer)-len, " \"%s\"", (IS_STR_FILLED(info->name)) ? info->name : pl->GetFilename());
1.34 if (IS_STR_FILLED(info->version))
1.35 {