|
|
|
@ -1863,8 +1863,9 @@ string getTarget(CCtrlBase * /* ctrl */, const string &targetName)
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifdef RYZOM_LUA_UCSTRING
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
|
ucstring getUCTarget(CCtrlBase * /* ctrl */, const string &targetName) // TODO: UTF-8 Lua
|
|
|
|
|
ucstring getUCTarget(CCtrlBase * /* ctrl */, const string &targetName)
|
|
|
|
|
{
|
|
|
|
|
string sTmp = targetName;
|
|
|
|
|
std::vector<CInterfaceLink::CTargetInfo> targetsVector;
|
|
|
|
@ -1884,6 +1885,7 @@ ucstring getUCTarget(CCtrlBase * /* ctrl */, const string &targetName) // TODO:
|
|
|
|
|
return ((elem->*(pRP->GetMethod.GetUCString))());
|
|
|
|
|
return ucstring(""); // TODO: UTF-8 Lua
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*// Ask the server to rename a character
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
@ -1955,7 +1957,11 @@ public:
|
|
|
|
|
string sDBLink = getParam(Params, "dblink");
|
|
|
|
|
CharNameValidDBLink = sDBLink;
|
|
|
|
|
|
|
|
|
|
#ifdef RYZOM_LUA_UCSTRING
|
|
|
|
|
string sName = getUCTarget(NULL,sTarget).toUtf8(); // TODO: UTF-8 Lua
|
|
|
|
|
#else
|
|
|
|
|
string sName = getTarget(NULL, sTarget);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
CInterfaceManager *pIM = CInterfaceManager::getInstance();
|
|
|
|
|
if (sName.empty())
|
|
|
|
|