fix stupid compile error

This commit is contained in:
Chris Danford
2002-09-09 05:50:32 +00:00
parent ccc43c8502
commit 0422a8558f
5 changed files with 820 additions and 15 deletions
+9 -14
View File
@@ -182,24 +182,19 @@ try_element_again:
CString sNewFileName;
file.ReadString( sNewFileName );
// CString sNewFilePath = sDir+"\\"+sNewFileName; // This is what it used to be, FONT redirs were getting extra slashes
// at the start of their file names, so I took out this extra slash - Andy.
file.Close();
CString sNewFilePath = sDir+sNewFileName;
if( sNewFileName == "" || !DoesFileExist(sNewFilePath) )
{
// at the start of their file names, so I took out this extra slash - Andy.
file.Close();
CString sNewFilePath = sDir+sNewFileName;
if( sNewFileName == "" || !DoesFileExist(sNewFilePath) )
{
#ifdef _DEBUG
if( IDRETRY == AfxMessageBox( ssprintf("The redirect '%s' points to the file '%s', which does not exist. Verify that this redirect is correct.", sRedirFilePath, sNewFilePath), MB_RETRYCANCEL ) )
goto try_element_again;
if( IDRETRY == AfxMessageBox( ssprintf("The redirect '%s' points to the file '%s', which does not exist. Verify that this redirect is correct.", sRedirFilePath, sNewFilePath), MB_RETRYCANCEL ) )
goto try_element_again;
#endif
throw RageException( "The redirect '%s' points to the file '%s', which does not exist. Verify that this redirect is correct.", sRedirFilePath, sNewFilePath );
}
else
return sNewFilePath;
throw RageException( "The redirect '%s' points to the file '%s', which does not exist. Verify that this redirect is correct.", sRedirFilePath, sNewFilePath );
}
else
{
return asPossibleElementFilePaths[0];
}
return sNewFilePath;
}
return asPossibleElementFilePaths[0];