s/_DEBUG/DEBUG/
This commit is contained in:
@@ -72,7 +72,7 @@ CString AnnouncerManager::GetPathTo( CString sFolderName )
|
|||||||
CString sPathToFolderCurrent = GetAnnouncerDirFromName(m_sCurAnnouncerName) + sFolderName;
|
CString sPathToFolderCurrent = GetAnnouncerDirFromName(m_sCurAnnouncerName) + sFolderName;
|
||||||
CString sPathToFolderEmpty = GetAnnouncerDirFromName(EMPTY_ANNOUNCER_NAME) + sFolderName;
|
CString sPathToFolderEmpty = GetAnnouncerDirFromName(EMPTY_ANNOUNCER_NAME) + sFolderName;
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
if( m_sCurAnnouncerName!="" && !DoesFileExist(sPathToFolderCurrent) )
|
if( m_sCurAnnouncerName!="" && !DoesFileExist(sPathToFolderCurrent) )
|
||||||
{
|
{
|
||||||
LOG->Trace( "The current announcer is missing the folder '%s'.", sFolderName.GetString() );
|
LOG->Trace( "The current announcer is missing the folder '%s'.", sFolderName.GetString() );
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ MusicBannerWheel::MusicBannerWheel()
|
|||||||
|
|
||||||
LoadSongData();
|
LoadSongData();
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
m_debugtext.LoadFromFont( THEME->GetPathTo("Fonts","small titles") );
|
m_debugtext.LoadFromFont( THEME->GetPathTo("Fonts","small titles") );
|
||||||
m_debugtext.SetXY( 0, -120 );
|
m_debugtext.SetXY( 0, -120 );
|
||||||
this->AddChild(&m_debugtext);
|
this->AddChild(&m_debugtext);
|
||||||
@@ -312,7 +312,7 @@ void MusicBannerWheel::BannersLeft()
|
|||||||
// m_ScrollingList.Unload();
|
// m_ScrollingList.Unload();
|
||||||
// LoadSongData();
|
// LoadSongData();
|
||||||
InsertNewBanner(GOINGLEFT);
|
InsertNewBanner(GOINGLEFT);
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
m_debugtext.SetText(ssprintf("currentPos: %d scrlistPos: %d",currentPos,scrlistPos));
|
m_debugtext.SetText(ssprintf("currentPos: %d scrlistPos: %d",currentPos,scrlistPos));
|
||||||
#endif
|
#endif
|
||||||
m_ScrollingList.Left();
|
m_ScrollingList.Left();
|
||||||
@@ -336,7 +336,7 @@ void MusicBannerWheel::BannersRight()
|
|||||||
// m_ScrollingList.Unload();
|
// m_ScrollingList.Unload();
|
||||||
// LoadSongData();
|
// LoadSongData();
|
||||||
InsertNewBanner(GOINGRIGHT);
|
InsertNewBanner(GOINGRIGHT);
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
m_debugtext.SetText(ssprintf("currentPos: %d scrlistPos: %d",currentPos,scrlistPos));
|
m_debugtext.SetText(ssprintf("currentPos: %d scrlistPos: %d",currentPos,scrlistPos));
|
||||||
#endif
|
#endif
|
||||||
m_ScrollingList.Right();
|
m_ScrollingList.Right();
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ private:
|
|||||||
void ChangeNotes();
|
void ChangeNotes();
|
||||||
void InsertNewBanner(int direction);
|
void InsertNewBanner(int direction);
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
BitmapText m_debugtext;
|
BitmapText m_debugtext;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ const float DEFAULT_SOUND_VOLUME = 0.50;
|
|||||||
|
|
||||||
PrefsManager::PrefsManager()
|
PrefsManager::PrefsManager()
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
m_bWindowed = true;
|
m_bWindowed = true;
|
||||||
#else
|
#else
|
||||||
m_bWindowed = false;
|
m_bWindowed = false;
|
||||||
@@ -43,7 +43,7 @@ PrefsManager::PrefsManager()
|
|||||||
m_iRefreshRate = REFRESH_DEFAULT;
|
m_iRefreshRate = REFRESH_DEFAULT;
|
||||||
m_bIgnoreJoyAxes = false; // when did this get changed to ON by default?
|
m_bIgnoreJoyAxes = false; // when did this get changed to ON by default?
|
||||||
m_bOnlyDedicatedMenuButtons = false;
|
m_bOnlyDedicatedMenuButtons = false;
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
m_bShowStats = true;
|
m_bShowStats = true;
|
||||||
#else
|
#else
|
||||||
m_bShowStats = false;
|
m_bShowStats = false;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#pragma comment(lib, "winmm.lib")
|
#pragma comment(lib, "winmm.lib")
|
||||||
|
|
||||||
// Link with the DirectShow base class libraries
|
// Link with the DirectShow base class libraries
|
||||||
#if defined(DEBUG) | defined(_DEBUG)
|
#if defined(DEBUG)
|
||||||
#pragma comment(lib, "baseclasses/debug/strmbasd.lib")
|
#pragma comment(lib, "baseclasses/debug/strmbasd.lib")
|
||||||
#else
|
#else
|
||||||
#pragma comment(lib, "baseclasses/release/strmbase.lib")
|
#pragma comment(lib, "baseclasses/release/strmbase.lib")
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
|
|
||||||
/* Pull in all of our SDL libraries here. */
|
/* Pull in all of our SDL libraries here. */
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
#pragma comment(lib, "SDL-1.2.5/lib/SDLd.lib")
|
#pragma comment(lib, "SDL-1.2.5/lib/SDLd.lib")
|
||||||
#pragma comment(lib, "SDL_image-1.2/SDL_imaged.lib")
|
#pragma comment(lib, "SDL_image-1.2/SDL_imaged.lib")
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ ScreenEz2SelectMusic::ScreenEz2SelectMusic()
|
|||||||
m_ChoiceListHighlight.SetXY( SCROLLING_LIST_X, SCROLLING_LIST_Y);
|
m_ChoiceListHighlight.SetXY( SCROLLING_LIST_X, SCROLLING_LIST_Y);
|
||||||
this->AddChild( &m_ChoiceListHighlight );
|
this->AddChild( &m_ChoiceListHighlight );
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
m_debugtext.LoadFromFont( THEME->GetPathTo("Fonts","small titles") );
|
m_debugtext.LoadFromFont( THEME->GetPathTo("Fonts","small titles") );
|
||||||
m_debugtext.SetXY( CENTER_X, CENTER_Y );
|
m_debugtext.SetXY( CENTER_X, CENTER_Y );
|
||||||
this->AddChild(&m_debugtext);
|
this->AddChild(&m_debugtext);
|
||||||
@@ -224,7 +224,7 @@ void ScreenEz2SelectMusic::UpdateOptions(PlayerNumber pn, int nosound)
|
|||||||
{
|
{
|
||||||
sOptions = GAMESTATE->m_PlayerOptions[pn].GetString();
|
sOptions = GAMESTATE->m_PlayerOptions[pn].GetString();
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
m_debugtext.SetText( "DEBUG: " + sOptions );
|
m_debugtext.SetText( "DEBUG: " + sOptions );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ protected:
|
|||||||
|
|
||||||
int i_ErrorDetected;
|
int i_ErrorDetected;
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
BitmapText m_debugtext;
|
BitmapText m_debugtext;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ int main(int argc, char* argv[])
|
|||||||
/* Set this up second. Do this early, since it's needed for RageException::Throw.
|
/* Set this up second. Do this early, since it's needed for RageException::Throw.
|
||||||
* Do it after ChangeToDirOfExecutable, so the log ends up in the right place. */
|
* Do it after ChangeToDirOfExecutable, so the log ends up in the right place. */
|
||||||
LOG = new RageLog();
|
LOG = new RageLog();
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
LOG->ShowConsole();
|
LOG->ShowConsole();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -249,7 +249,7 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
CString g_sErrorString = "";
|
CString g_sErrorString = "";
|
||||||
|
|
||||||
#ifndef _DEBUG
|
#ifndef DEBUG
|
||||||
try{
|
try{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -339,7 +339,7 @@ int main(int argc, char* argv[])
|
|||||||
PREFSMAN->SaveGlobalPrefsToDisk();
|
PREFSMAN->SaveGlobalPrefsToDisk();
|
||||||
PREFSMAN->SaveGamePrefsToDisk();
|
PREFSMAN->SaveGamePrefsToDisk();
|
||||||
|
|
||||||
#ifndef _DEBUG
|
#ifndef DEBUG
|
||||||
}
|
}
|
||||||
catch( RageException e )
|
catch( RageException e )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ try_element_again:
|
|||||||
"Verify that this redirect is correct.",
|
"Verify that this redirect is correct.",
|
||||||
asPossibleElementFilePaths[0].GetString(), sNewFilePath.GetString());
|
asPossibleElementFilePaths[0].GetString(), sNewFilePath.GetString());
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
if( MessageBox(NULL, message.GetString(), "ThemeManager", MB_RETRYCANCEL ) == IDRETRY)
|
if( MessageBox(NULL, message.GetString(), "ThemeManager", MB_RETRYCANCEL ) == IDRETRY)
|
||||||
goto try_element_again;
|
goto try_element_again;
|
||||||
#endif
|
#endif
|
||||||
@@ -216,7 +216,7 @@ CString ThemeManager::GetPathToOptional( CString sAssetCategory, CString sFileNa
|
|||||||
|
|
||||||
CString ThemeManager::GetPathTo( CString sAssetCategory, CString sFileName )
|
CString ThemeManager::GetPathTo( CString sAssetCategory, CString sFileName )
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
try_element_again:
|
try_element_again:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -224,7 +224,7 @@ try_element_again:
|
|||||||
if( !ret.empty() ) // we found something
|
if( !ret.empty() ) // we found something
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
CString sMessage = ssprintf("The theme element %s/%s is missing.",sAssetCategory.GetString(),sFileName.GetString());
|
CString sMessage = ssprintf("The theme element %s/%s is missing.",sAssetCategory.GetString(),sFileName.GetString());
|
||||||
switch( MessageBox(NULL, sMessage, "ThemeManager", MB_RETRYCANCEL ) )
|
switch( MessageBox(NULL, sMessage, "ThemeManager", MB_RETRYCANCEL ) )
|
||||||
{
|
{
|
||||||
@@ -262,7 +262,7 @@ CString ThemeManager::GetMetricsPathFromName( CString sThemeName )
|
|||||||
|
|
||||||
CString ThemeManager::GetMetric( CString sClassName, CString sValueName )
|
CString ThemeManager::GetMetric( CString sClassName, CString sValueName )
|
||||||
{
|
{
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
try_metric_again:
|
try_metric_again:
|
||||||
#endif
|
#endif
|
||||||
CString sCurMetricPath = GetMetricsPathFromName(m_sCurThemeName);
|
CString sCurMetricPath = GetMetricsPathFromName(m_sCurThemeName);
|
||||||
@@ -292,7 +292,7 @@ try_metric_again:
|
|||||||
return sValue;
|
return sValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef DEBUG
|
||||||
if( IDRETRY == MessageBox(NULL,ssprintf("The theme metric %s-%s is missing. Correct this and click Retry, or Cancel to break.",sClassName.GetString(),sValueName.GetString()),"ThemeManager",MB_RETRYCANCEL ) )
|
if( IDRETRY == MessageBox(NULL,ssprintf("The theme metric %s-%s is missing. Correct this and click Retry, or Cancel to break.",sClassName.GetString(),sValueName.GetString()),"ThemeManager",MB_RETRYCANCEL ) )
|
||||||
goto try_metric_again;
|
goto try_metric_again;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user