mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-11 17:26:39 +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:
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.FileSystem;
|
||||||
using Ryujinx.HLE.HOS;
|
using Ryujinx.HLE.HOS;
|
||||||
using Ryujinx.HLE.Loaders.Npdm;
|
using Ryujinx.HLE.Loaders.Npdm;
|
||||||
using Ryujinx.Ui.Widgets;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
@ -36,7 +35,6 @@ namespace Ryujinx.Ui.App
|
||||||
|
|
||||||
private VirtualFileSystem _virtualFileSystem;
|
private VirtualFileSystem _virtualFileSystem;
|
||||||
private Language _desiredTitleLanguage;
|
private Language _desiredTitleLanguage;
|
||||||
private bool _loadingError;
|
|
||||||
|
|
||||||
public ApplicationLibrary(VirtualFileSystem virtualFileSystem)
|
public ApplicationLibrary(VirtualFileSystem virtualFileSystem)
|
||||||
{
|
{
|
||||||
|
@ -117,7 +115,6 @@ namespace Ryujinx.Ui.App
|
||||||
int numApplicationsFound = 0;
|
int numApplicationsFound = 0;
|
||||||
int numApplicationsLoaded = 0;
|
int numApplicationsLoaded = 0;
|
||||||
|
|
||||||
_loadingError = false;
|
|
||||||
_desiredTitleLanguage = desiredTitleLanguage;
|
_desiredTitleLanguage = desiredTitleLanguage;
|
||||||
|
|
||||||
// Builds the applications list with paths to found applications
|
// 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}");
|
Logger.Warning?.Print(LogClass.Application, $"The file encountered was not of a valid type. File: '{applicationPath}' Error: {exception}");
|
||||||
|
|
||||||
numApplicationsFound--;
|
numApplicationsFound--;
|
||||||
_loadingError = true;
|
|
||||||
|
|
||||||
continue;
|
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}");
|
Logger.Warning?.Print(LogClass.Application, $"The file encountered was not of a valid type. Errored File: {applicationPath}");
|
||||||
|
|
||||||
numApplicationsFound--;
|
numApplicationsFound--;
|
||||||
_loadingError = true;
|
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -403,7 +398,6 @@ namespace Ryujinx.Ui.App
|
||||||
Logger.Warning?.Print(LogClass.Application, exception.Message);
|
Logger.Warning?.Print(LogClass.Application, exception.Message);
|
||||||
|
|
||||||
numApplicationsFound--;
|
numApplicationsFound--;
|
||||||
_loadingError = true;
|
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -452,14 +446,6 @@ namespace Ryujinx.Ui.App
|
||||||
NumAppsFound = numApplicationsFound,
|
NumAppsFound = numApplicationsFound,
|
||||||
NumAppsLoaded = numApplicationsLoaded
|
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)
|
protected void OnApplicationAdded(ApplicationAddedEventArgs e)
|
||||||
|
|
Loading…
Reference in a new issue