1.1 --- a/core/smn_usermsgs.cpp Sat May 12 02:14:12 2007 +0000
1.2 +++ b/core/smn_usermsgs.cpp Sat May 12 04:47:58 2007 +0000
1.3 @@ -310,16 +310,11 @@
1.4
1.5 static cell_t smn_GetUserMessageName(IPluginContext *pCtx, const cell_t *params)
1.6 {
1.7 - const char *msgname = g_SMAPI->GetUserMessage(params[1]);
1.8 + char *msgname;
1.9
1.10 - if (msgname == NULL)
1.11 - {
1.12 - return 0;
1.13 - }
1.14 + pCtx->LocalToPhysAddr(params[2], (cell_t **)&msgname);
1.15
1.16 - pCtx->StringToLocalUTF8(params[2], params[3], msgname, NULL);
1.17 -
1.18 - return 1;
1.19 + return g_UserMsgs.GetMessageName(params[1], msgname, params[3]);
1.20 }
1.21
1.22 static cell_t smn_StartMessage(IPluginContext *pCtx, const cell_t *params)