Allow more movie types for bgchanges
This commit is contained in:
+6
-1
@@ -400,7 +400,12 @@ FileType ActorUtil::GetFileType( const RString &sPath )
|
||||
else if(
|
||||
sExt=="ogv" ||
|
||||
sExt=="avi" ||
|
||||
sExt=="mpeg" ||
|
||||
sExt=="mpeg" ||
|
||||
sExt=="mp4" ||
|
||||
sExt=="mkv" ||
|
||||
sExt=="mov" ||
|
||||
sExt=="flv" ||
|
||||
sExt=="f4v" ||
|
||||
sExt=="mpg" ) return FT_Movie;
|
||||
else if(
|
||||
sExt=="txt" ) return FT_Model;
|
||||
|
||||
@@ -198,6 +198,11 @@ void BackgroundUtil::GetSongMovies( const Song *pSong, const RString &sMatch, ve
|
||||
GetDirListing( pSong->GetSongDir()+sMatch+"*.avi", vsPathsOut, false, true );
|
||||
GetDirListing( pSong->GetSongDir()+sMatch+"*.mpg", vsPathsOut, false, true );
|
||||
GetDirListing( pSong->GetSongDir()+sMatch+"*.mpeg", vsPathsOut, false, true );
|
||||
GetDirListing( pSong->GetSongDir()+sMatch+"*.mp4", vsPathsOut, false, true );
|
||||
GetDirListing( pSong->GetSongDir()+sMatch+"*.flv", vsPathsOut, false, true );
|
||||
GetDirListing( pSong->GetSongDir()+sMatch+"*.f4v", vsPathsOut, false, true );
|
||||
GetDirListing( pSong->GetSongDir()+sMatch+"*.mov", vsPathsOut, false, true );
|
||||
GetDirListing( pSong->GetSongDir()+sMatch+"*.mkv", vsPathsOut, false, true );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -142,7 +142,7 @@ RageTexture* RageTextureManager::LoadTextureInternal( RageTextureID ID )
|
||||
RageTexture* pTexture;
|
||||
if( ID.filename == g_sDefaultTextureName )
|
||||
pTexture = new RageTexture_Default;
|
||||
else if( sExt == "ogv" || sExt == "avi" || sExt == "mpg" || sExt == "mpeg" )
|
||||
else if( sExt == "ogv" || sExt == "avi" || sExt == "mpg" || sExt == "mpeg" || sExt == "mp4" || sExt == "mkv" || sExt == "mov" || sExt == "flv" || sExt == "f4v")
|
||||
pTexture = RageMovieTexture::Create( ID );
|
||||
else
|
||||
pTexture = new RageBitmapTexture( ID );
|
||||
|
||||
@@ -822,6 +822,12 @@ void Song::TidyUpData( bool fromCache, bool /* duringCache */ )
|
||||
GetDirListing( m_sSongDir + RString("*.avi"), arrayPossibleMovies );
|
||||
GetDirListing( m_sSongDir + RString("*.mpg"), arrayPossibleMovies );
|
||||
GetDirListing( m_sSongDir + RString("*.mpeg"), arrayPossibleMovies );
|
||||
GetDirListing( m_sSongDir + RString("*.mp4"), arrayPossibleMovies );
|
||||
GetDirListing( m_sSongDir + RString("*.mkv"), arrayPossibleMovies );
|
||||
GetDirListing( m_sSongDir + RString("*.flv"), arrayPossibleMovies );
|
||||
GetDirListing( m_sSongDir + RString("*.f4v"), arrayPossibleMovies );
|
||||
GetDirListing( m_sSongDir + RString("*.mov"), arrayPossibleMovies );
|
||||
|
||||
/* Use this->GetBeatFromElapsedTime(0) instead of 0 to start when the
|
||||
* music starts. */
|
||||
if( arrayPossibleMovies.size() == 1 )
|
||||
|
||||
Reference in New Issue
Block a user