Only defined for WIN32

This commit is contained in:
Steve Checkoway
2003-07-11 03:39:02 +00:00
parent 8158ca8770
commit f832fbfd3f
+5 -1
View File
@@ -162,9 +162,11 @@ try_element_again:
"'%s/%s/%s'. Please remove all but one of these matches.", "'%s/%s/%s'. Please remove all but one of these matches.",
sThemeName.c_str(), sCategory.c_str(), sFileName.c_str() ); sThemeName.c_str(), sCategory.c_str(), sFileName.c_str() );
#if defined(WIND32)
if( DISPLAY->IsWindowed() ) if( DISPLAY->IsWindowed() )
if( ArchHooks::retry == HOOKS->MessageBoxAbortRetryIgnore(message) ) if( ArchHooks::retry == HOOKS->MessageBoxAbortRetryIgnore(message) )
goto try_element_again; goto try_element_again;
#endif
RageException::Throw( message ); RageException::Throw( message );
} }
@@ -210,9 +212,11 @@ try_element_again:
"Verify that this redirect is correct.", "Verify that this redirect is correct.",
sPath.c_str(), sNewFileName.c_str()); sPath.c_str(), sNewFileName.c_str());
#if defined(WIN32)
if( DISPLAY->IsWindowed() ) if( DISPLAY->IsWindowed() )
if( ArchHooks::retry == HOOKS->MessageBoxAbortRetryIgnore(message) ) if( ArchHooks::retry == HOOKS->MessageBoxAbortRetryIgnore(message) )
goto try_element_again; goto try_element_again;
#endif
RageException::Throw( "%s", message.c_str() ); RageException::Throw( "%s", message.c_str() );
} }
@@ -232,7 +236,7 @@ try_element_again:
ret = GetPathTo( BASE_THEME_NAME, category, sFileName); ret = GetPathTo( BASE_THEME_NAME, category, sFileName);
if( !ret.empty() ) // we found something if( !ret.empty() ) // we found something
return ret; return ret;
else if( bOptional ) else if( bOptional )
return ""; return "";
CString sCategory = ELEMENT_CATEGORY_STRING[category]; CString sCategory = ELEMENT_CATEGORY_STRING[category];