Use AbortRetryIgnore, don't just Throw.

This commit is contained in:
Steve Checkoway
2006-06-24 00:58:38 +00:00
parent b1fdee1bad
commit 9a5374e23f
+14 -2
View File
@@ -156,8 +156,20 @@ retry:
"There is more than one file that matches "
"'%s'. Please remove all but one of these matches.",
sPath.c_str() );
RageException::Throw( message );
#ifdef DEBUG
message += "\n" + join( "\n", asElementPaths );
#endif
switch( Dialog::AbortRetryIgnore(message) )
{
case Dialog::abort:
RageException::Throw( message );
case Dialog::retry:
goto retry;
case Dialog::ignore:
return;
default:
ASSERT(0);
}
}
sPath = asElementPaths[0];