Some tidy up of sprintf to StringFromFormat

This commit is contained in:
Matthew Parlane
2014-02-08 14:23:34 +13:00
parent 64e01ec763
commit ebff7974c3
13 changed files with 64 additions and 111 deletions

View File

@ -600,9 +600,10 @@ void VertexLoader::CompileVertexTranslator()
if (pFunc == 0)
{
char temp[256];
sprintf(temp,"%i %i %i %i", m_VtxDesc.Normal, m_VtxAttr.NormalFormat, m_VtxAttr.NormalElements, m_VtxAttr.NormalIndex3);
Host_SysMessage("VertexLoader_Normal::GetFunction returned zero!");
Host_SysMessage(
StringFromFormat("VertexLoader_Normal::GetFunction(%i %i %i %i) returned zero!",
m_VtxDesc.Normal, m_VtxAttr.NormalFormat,
m_VtxAttr.NormalElements, m_VtxAttr.NormalIndex3).c_str());
}
WriteCall(pFunc);