block off this debug code for now

This commit is contained in:
Glenn Maynard
2003-02-16 03:59:37 +00:00
parent 673eb1add6
commit f025cd5812
+4 -4
View File
@@ -1,4 +1,4 @@
#include "stdafx.h" #include "global.h"
/* /*
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
Class: ThemeManager Class: ThemeManager
@@ -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 #if defined(DEBUG) && defined(WIN32) // XXX arch?
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
@@ -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 #if defined(DEBUG) && defined(WIN32)
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 ) )
{ {
@@ -292,7 +292,7 @@ try_metric_again:
return sValue; return sValue;
} }
#ifdef DEBUG #if defined(DEBUG) && defined(WIN32)
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