misc: chore: Move Fs Integrity Checks getter to ConfigurationState
This commit is contained in:
@@ -81,10 +81,6 @@ namespace Ryujinx.Ava.Utilities
|
||||
{
|
||||
List<(TitleUpdateModel, bool IsSelected)> result = [];
|
||||
|
||||
IntegrityCheckLevel checkLevel = ConfigurationState.Instance.System.EnableFsIntegrityChecks
|
||||
? IntegrityCheckLevel.ErrorOnInvalid
|
||||
: IntegrityCheckLevel.None;
|
||||
|
||||
foreach (string path in titleUpdateMetadata.Paths)
|
||||
{
|
||||
if (!File.Exists(path))
|
||||
@@ -95,7 +91,7 @@ namespace Ryujinx.Ava.Utilities
|
||||
using IFileSystem pfs = PartitionFileSystemUtils.OpenApplicationFileSystem(path, vfs);
|
||||
|
||||
Dictionary<ulong, ContentMetaData> updates =
|
||||
pfs.GetContentData(ContentMetaType.Patch, vfs, checkLevel);
|
||||
pfs.GetContentData(ContentMetaType.Patch, vfs, ConfigurationState.Instance.System.IntegrityCheckLevel);
|
||||
|
||||
if (!updates.TryGetValue(applicationIdBase, out ContentMetaData content))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user