diff --git a/src/Ryujinx.UI.Common/App/ApplicationAddedEventArgs.cs b/src/Ryujinx.UI.Common/App/ApplicationAddedEventArgs.cs deleted file mode 100644 index 58e066b9d4..0000000000 --- a/src/Ryujinx.UI.Common/App/ApplicationAddedEventArgs.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System; - -namespace Ryujinx.UI.App.Common -{ - public class ApplicationAddedEventArgs : EventArgs - { - public ApplicationData AppData { get; set; } - } -} diff --git a/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs b/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs index 43a6ec9877..e24561eae0 100644 --- a/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs +++ b/src/Ryujinx.UI.Common/App/ApplicationLibrary.cs @@ -41,7 +41,6 @@ namespace Ryujinx.UI.App.Common public class ApplicationLibrary { public Language DesiredLanguage { get; set; } - public event EventHandler ApplicationAdded; public event EventHandler ApplicationCountUpdated; public readonly IObservableCache Applications; @@ -629,6 +628,7 @@ namespace Ryujinx.UI.App.Common { Logger.Warning?.Print(LogClass.Application, $"The file encountered was not of a valid type. File: '{filePath}' Error: {exception}"); } + return false; } @@ -729,14 +729,6 @@ namespace Ryujinx.UI.App.Common if (TryGetApplicationsFromFile(applicationPath, out List applications)) { - foreach (var application in applications) - { - OnApplicationAdded(new ApplicationAddedEventArgs - { - AppData = application, - }); - } - _applications.Edit(it => { foreach (var application in applications) @@ -839,12 +831,7 @@ namespace Ryujinx.UI.App.Common }; IEnumerable files = Directory.EnumerateFiles(appDir, "*", options).Where( - file => - { - return - (Path.GetExtension(file).ToLower() is ".nsp" && - ConfigurationState.Instance.UI.ShownFileTypes.NSP.Value); - }); + file => Path.GetExtension(file).ToLower() is ".nsp"); foreach (string app in files) { @@ -940,12 +927,7 @@ namespace Ryujinx.UI.App.Common }; IEnumerable files = Directory.EnumerateFiles(appDir, "*", options).Where( - file => - { - return - (Path.GetExtension(file).ToLower() is ".nsp" && - ConfigurationState.Instance.UI.ShownFileTypes.NSP.Value); - }); + file => Path.GetExtension(file).ToLower() is ".nsp"); foreach (string app in files) { @@ -1018,11 +1000,6 @@ namespace Ryujinx.UI.App.Common return numUpdatesLoaded; } - protected void OnApplicationAdded(ApplicationAddedEventArgs e) - { - ApplicationAdded?.Invoke(null, e); - } - protected void OnApplicationCountUpdated(ApplicationCountUpdatedEventArgs e) { ApplicationCountUpdated?.Invoke(null, e);