diff options
| author | Matthew Parlane <parlane@gmail.com> | 2014-02-08 14:23:34 +1300 |
|---|---|---|
| committer | Matthew Parlane <parlane@gmail.com> | 2014-02-10 17:25:18 +1300 |
| commit | 32bfcc034f41276f0fad036dece8a8f632913dff (patch) | |
| tree | 33955e265cab4ece64efbbcc475896e8e8d280b6 /Source/Core/VideoCommon/VertexLoader.cpp | |
| parent | 8d25e12085b8e3785a9843a8ffb5545eeb109107 (diff) | |
Some tidy up of sprintf to StringFromFormat
Includes a small fix to SetupWiiMemory
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp index 772bb1f1f8..d3806aeaa7 100644 --- a/Source/Core/VideoCommon/VertexLoader.cpp +++ b/Source/Core/VideoCommon/VertexLoader.cpp @@ -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); |
