aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobhope <william.reindl01@gmail.com>2021-09-11 14:59:11 -0400
committerGitHub <noreply@github.com>2021-09-11 20:59:11 +0200
commit830d1f097d62ea4888d2d405f3c74b54948889aa (patch)
tree749988a10df62429484934f622fb3081cbd684ab
parentf0b00c1ae92a2e8fdff9c532e7f2f79ad708b184 (diff)
Remove file error popup (#2547)
* Added check to detect if application file is more than zero bytes long * Removed file error popup * Removed unnecessary usings * Added empty lines
-rw-r--r--Ryujinx/Ui/App/ApplicationLibrary.cs14
1 files changed, 0 insertions, 14 deletions
diff --git a/Ryujinx/Ui/App/ApplicationLibrary.cs b/Ryujinx/Ui/App/ApplicationLibrary.cs
index dcf49204..31952fba 100644
--- a/Ryujinx/Ui/App/ApplicationLibrary.cs
+++ b/Ryujinx/Ui/App/ApplicationLibrary.cs
@@ -11,7 +11,6 @@ using Ryujinx.Configuration.System;
using Ryujinx.HLE.FileSystem;
using Ryujinx.HLE.HOS;
using Ryujinx.HLE.Loaders.Npdm;
-using Ryujinx.Ui.Widgets;
using System;
using System.Collections.Generic;
using System.IO;
@@ -36,7 +35,6 @@ namespace Ryujinx.Ui.App
private VirtualFileSystem _virtualFileSystem;
private Language _desiredTitleLanguage;
- private bool _loadingError;
public ApplicationLibrary(VirtualFileSystem virtualFileSystem)
{
@@ -117,7 +115,6 @@ namespace Ryujinx.Ui.App
int numApplicationsFound = 0;
int numApplicationsLoaded = 0;
- _loadingError = false;
_desiredTitleLanguage = desiredTitleLanguage;
// Builds the applications list with paths to found applications
@@ -301,7 +298,6 @@ namespace Ryujinx.Ui.App
Logger.Warning?.Print(LogClass.Application, $"The file encountered was not of a valid type. File: '{applicationPath}' Error: {exception}");
numApplicationsFound--;
- _loadingError = true;
continue;
}
@@ -382,7 +378,6 @@ namespace Ryujinx.Ui.App
Logger.Warning?.Print(LogClass.Application, $"The file encountered was not of a valid type. Errored File: {applicationPath}");
numApplicationsFound--;
- _loadingError = true;
continue;
}
@@ -403,7 +398,6 @@ namespace Ryujinx.Ui.App
Logger.Warning?.Print(LogClass.Application, exception.Message);
numApplicationsFound--;
- _loadingError = true;
continue;
}
@@ -452,14 +446,6 @@ namespace Ryujinx.Ui.App
NumAppsFound = numApplicationsFound,
NumAppsLoaded = numApplicationsLoaded
});
-
- if (_loadingError)
- {
- Gtk.Application.Invoke(delegate
- {
- GtkDialog.CreateErrorDialog("One or more files encountered could not be loaded, check logs for more info.");
- });
- }
}
protected void OnApplicationAdded(ApplicationAddedEventArgs e)