diff --git a/src/BizHawk.Client.Common/movie/import/MovieImport.cs b/src/BizHawk.Client.Common/movie/import/MovieImport.cs index 29f53f670b..a1b2e7dfde 100644 --- a/src/BizHawk.Client.Common/movie/import/MovieImport.cs +++ b/src/BizHawk.Client.Common/movie/import/MovieImport.cs @@ -43,7 +43,7 @@ namespace BizHawk.Client.Common var result = Importers.FirstOrNull(kvp => string.Equals(kvp.Value.Extension, ext, StringComparison.OrdinalIgnoreCase)); // Create a new instance of the importer class using the no-argument constructor return result is { Key: var importerType } - && importerType.GetConstructor(Array.Empty())?.Invoke(Array.Empty()) is IMovieImport importer + && importerType.GetConstructor(Type.EmptyTypes)?.Invoke(Array.Empty()) is IMovieImport importer ? importer.Import(dialogParent, session, path, config) : ImportResult.Error($"No importer found for file type {ext}"); }