Do away with LPCTSTR. (We're not making a Unicode build, and if
we were it's not being used everywhere it would need to be. If we want Unicode support, that's probably not the way to do it anyway ...)
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
#pragma comment(lib, "DxErr8.lib")
|
#pragma comment(lib, "DxErr8.lib")
|
||||||
|
|
||||||
|
|
||||||
RageException::RageException( LPCTSTR fmt, ...)
|
RageException::RageException( const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list va;
|
va_list va;
|
||||||
va_start(va, fmt);
|
va_start(va, fmt);
|
||||||
@@ -28,7 +28,7 @@ RageException::RageException( LPCTSTR fmt, ...)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
RageException::RageException( HRESULT hr, LPCTSTR fmt, ...)
|
RageException::RageException( HRESULT hr, const char *fmt, ...)
|
||||||
{
|
{
|
||||||
va_list va;
|
va_list va;
|
||||||
va_start(va, fmt);
|
va_start(va, fmt);
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
class RageException : exception
|
class RageException : exception
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
RageException( LPCTSTR fmt, ...);
|
RageException( const char *fmt, ...);
|
||||||
RageException( HRESULT hr, LPCTSTR fmt, ...);
|
RageException( HRESULT hr, const char *fmt, ...);
|
||||||
|
|
||||||
virtual const char *what() const;
|
virtual const char *what() const;
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ RageSound::~RageSound()
|
|||||||
|
|
||||||
void RageSound::PlayOnceStreamed( CString sPath )
|
void RageSound::PlayOnceStreamed( CString sPath )
|
||||||
{
|
{
|
||||||
HSTREAM hStream = BASS_StreamCreateFile( FALSE, (void*)((LPCTSTR)sPath), 0, 0, BASS_STREAM_AUTOFREE );
|
HSTREAM hStream = BASS_StreamCreateFile( FALSE, const_cast<char*>((const char *)sPath), 0, 0, BASS_STREAM_AUTOFREE );
|
||||||
if( hStream == NULL )
|
if( hStream == NULL )
|
||||||
throw RageException( "RageSound: Error creating stream." );
|
throw RageException( "RageSound: Error creating stream." );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user