Redir Bugfix: Font's not redirecting correctly.
This commit is contained in:
@@ -187,7 +187,9 @@ try_element_again:
|
|||||||
file.Open( sRedirFilePath, CFile::modeRead );
|
file.Open( sRedirFilePath, CFile::modeRead );
|
||||||
CString sNewFileName;
|
CString sNewFileName;
|
||||||
file.ReadString( sNewFileName );
|
file.ReadString( sNewFileName );
|
||||||
CString sNewFilePath = sDir+"\\"+sNewFileName;
|
// CString sNewFilePath = sDir+"\\"+sNewFileName; // This is what it used to be, FONTS were getting extra slashes
|
||||||
|
// at the start of their file names, so I took out this extra slash - Andy.
|
||||||
|
CString sNewFilePath = sDir+sNewFileName;
|
||||||
if( sNewFileName == "" || !DoesFileExist(sNewFilePath) )
|
if( sNewFileName == "" || !DoesFileExist(sNewFilePath) )
|
||||||
{
|
{
|
||||||
throw RageException( "The redirect '%s' points to the file '%s', which does not exist. Verify that this redirect is correct.", sRedirFilePath, sNewFilePath );
|
throw RageException( "The redirect '%s' points to the file '%s', which does not exist. Verify that this redirect is correct.", sRedirFilePath, sNewFilePath );
|
||||||
|
|||||||
Reference in New Issue
Block a user