forked from Mirror/Ryujinx
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:
parent
f0b00c1ae9
commit
830d1f097d
1 changed files with 0 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue