don't lowercase filenames before loading
This commit is contained in:
@@ -106,9 +106,10 @@ void BGAnimationLayer::LoadFromVisualization( CString sMoviePath )
|
|||||||
|
|
||||||
void BGAnimationLayer::LoadFromAniLayerFile( CString sPath, CString sSongBGPath )
|
void BGAnimationLayer::LoadFromAniLayerFile( CString sPath, CString sSongBGPath )
|
||||||
{
|
{
|
||||||
sPath.MakeLower();
|
CString lcPath = sPath;
|
||||||
|
lcPath.MakeLower();
|
||||||
|
|
||||||
if( sPath.Find("usesongbg") != -1 )
|
if( lcPath.Find("usesongbg") != -1 )
|
||||||
{
|
{
|
||||||
LoadFromStaticGraphic( sSongBGPath );
|
LoadFromStaticGraphic( sSongBGPath );
|
||||||
return; // this will ignore other effects in the file name
|
return; // this will ignore other effects in the file name
|
||||||
@@ -145,7 +146,7 @@ void BGAnimationLayer::LoadFromAniLayerFile( CString sPath, CString sSongBGPath
|
|||||||
|
|
||||||
for( int i=0; i<NUM_EFFECTS; i++ )
|
for( int i=0; i<NUM_EFFECTS; i++ )
|
||||||
{
|
{
|
||||||
if( sPath.Find(EFFECT_STRING[i]) != -1 )
|
if( lcPath.Find(EFFECT_STRING[i]) != -1 )
|
||||||
{
|
{
|
||||||
m_Effect = (Effect)i;
|
m_Effect = (Effect)i;
|
||||||
goto found_effect;
|
goto found_effect;
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ void FontPage::Load( FontPageSettings cfg )
|
|||||||
m_sTexturePath = cfg.TexturePath;
|
m_sTexturePath = cfg.TexturePath;
|
||||||
|
|
||||||
// load texture
|
// load texture
|
||||||
m_sTexturePath.MakeLower();
|
|
||||||
RageTextureID ID(m_sTexturePath);
|
RageTextureID ID(m_sTexturePath);
|
||||||
ID.bStretch = true;
|
ID.bStretch = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user