1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-04 19:12:02 +00:00

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
This commit is contained in:
bobhope 2021-09-11 14:59:11 -04:00 committed by GitHub
parent f0b00c1ae9
commit 830d1f097d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)