remove HRESULT log and exception ctors; use hr_ssprintf instead

This commit is contained in:
Glenn Maynard
2002-12-09 22:25:57 +00:00
parent bee3937d59
commit fddcc849b2
4 changed files with 3 additions and 34 deletions
-12
View File
@@ -28,18 +28,6 @@ RageException::RageException( const char *fmt, ...)
#endif
}
RageException::RageException( HRESULT hr, const char *fmt, ...)
{
va_list va;
va_start(va, fmt);
m_sError = vssprintf( fmt, va );
m_sError += ssprintf( "(%s)", DXGetErrorString8(hr) );
#ifdef _DEBUG
MessageBox( NULL, m_sError, "Fatal Error", MB_OK );
DebugBreak();
#endif
}
const char* RageException::what() const throw ()
{
return m_sError;