From a45a98f773dfc98decce8a257c9d5d63877834a8 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Wed, 15 Feb 2012 01:18:15 +0000 Subject: [PATCH] MovieImport - implement IsValidMovieExtension() --- BizHawk.MultiClient/movie/MovieImport.cs | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/BizHawk.MultiClient/movie/MovieImport.cs b/BizHawk.MultiClient/movie/MovieImport.cs index 25ef866f69..c689193a15 100644 --- a/BizHawk.MultiClient/movie/MovieImport.cs +++ b/BizHawk.MultiClient/movie/MovieImport.cs @@ -21,8 +21,19 @@ namespace BizHawk.MultiClient public static bool IsValidMovieExtension(string extension) { - //TODO: This function will receive, parse the extension and decide if it is a movie type that it can parse - return true; + switch (extension.ToUpper()) + { + case "TAS": + case "FM2": + case "FCM": + case "MMV": + case "GMV": + case "MC2": + case "VBM": + return true; + default: + return false; + } } private static Movie ImportFCM(string path, out string errorMsg)