remove HRESULT log and exception ctors; use hr_ssprintf instead
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user