diff music2/movie.cc @ 53:ddbcbd000206

* MuSys, AyuSysConfig, FileSearcher (former FILESEARCHER) and KeyHolder (former KEYHOLDER) are now singletons * ParseMoji moved to TextStream * Some cleaning (0 -> NULL when needed, removal of useless returns, ...)
author thib
date Sun, 19 Apr 2009 11:44:05 +0000
parents 15a18fbe6f21
children 4416cfac86ae
line wrap: on
line diff
--- a/music2/movie.cc
+++ b/music2/movie.cc
@@ -71,9 +71,10 @@ void MuSys::PlayMovie(const char* path, 
 }
 
 const char* FindMovieFile(const char* path) {
-	ARCINFO* info = file_searcher.Find(FILESEARCH::MOV, path, "avi");
+	FileSearcher* file_searcher = FileSearcher::GetInstance();
+	ARCINFO* info = file_searcher->Find(FileSearcher::MOV, path, "avi");
 	if (info == NULL)
-		info = file_searcher.Find(FILESEARCH::MOV,path,"mpg");
+		info = file_searcher->Find(FileSearcher::MOV,path,"mpg");
 	if (info == NULL) return NULL;
 	const char* file = info->Path();
 	delete info;