s/ThrowFatal/Throw/
This commit is contained in:
@@ -32,7 +32,7 @@ const char* RageException::what() const throw ()
|
||||
return m_sError;
|
||||
}
|
||||
|
||||
RageException::ThrowFatal(const char *fmt, ...)
|
||||
RageException::Throw(const char *fmt, ...)
|
||||
{
|
||||
va_list va;
|
||||
va_start(va, fmt);
|
||||
|
||||
@@ -23,11 +23,10 @@ public:
|
||||
virtual const char *what() const throw();
|
||||
virtual ~RageException() throw() { }
|
||||
|
||||
/* The only difference between these is that ThrowFatal triggers debug
|
||||
* behavior, and Nonfatal doesn't. Nonfatal is used when the exception
|
||||
* happens normally and will be caught, such as when a driver fails to
|
||||
* initialize. */
|
||||
static ThrowFatal(const char *fmt, ...);
|
||||
/* The only difference between these is that Throw triggers debug behavior
|
||||
* and Nonfatal doesn't. Nonfatal is used when the exception happens
|
||||
* normally and will be caught, such as when a driver fails to initialize. */
|
||||
static Throw(const char *fmt, ...);
|
||||
static ThrowNonfatal(const char *fmt, ...);
|
||||
|
||||
protected:
|
||||
|
||||
@@ -106,7 +106,7 @@ bool RageSound_WaveOut::GetPCM()
|
||||
|
||||
MMRESULT ret = waveOutWrite(wo, &buffers[b], sizeof(buffers[b]));
|
||||
if(ret != MMSYSERR_NOERROR)
|
||||
RageException::ThrowFatal(wo_ssprintf(ret, "waveOutWrite failed"));
|
||||
RageException::Throw(wo_ssprintf(ret, "waveOutWrite failed"));
|
||||
|
||||
/* Increment last_cursor_pos. */
|
||||
last_cursor_pos += chunksize_frames;
|
||||
@@ -167,7 +167,7 @@ int RageSound_WaveOut::GetPosition(const RageSound *snd) const
|
||||
tm.wType = TIME_SAMPLES;
|
||||
MMRESULT ret = waveOutGetPosition(wo, &tm, sizeof(tm));
|
||||
if(ret != MMSYSERR_NOERROR)
|
||||
RageException::ThrowFatal(wo_ssprintf(ret, "waveOutGetPosition failed"));
|
||||
RageException::Throw(wo_ssprintf(ret, "waveOutGetPosition failed"));
|
||||
|
||||
return tm.u.sample;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user