better redir error checking

This commit is contained in:
Chris Danford
2003-09-23 05:39:47 +00:00
parent cda57e7c5d
commit 4087097cf4
2 changed files with 12 additions and 1 deletions
+4
View File
@@ -554,6 +554,10 @@ CString DerefRedir(const CString &path)
CollapsePath( path2 );
ResolvePath( path2 );
if( !DoesFileExist(path2) )
RageException::Throw( "The redirect '%s' references a file '%s' which doesn't exist.", path.c_str(), path2.c_str() );
return path2;
}