Skip to content

Commit

Permalink
Wrap nsp/pfs0 case with curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
TSRBerry committed Jul 16, 2024
1 parent cb95f57 commit 025fa82
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/Ryujinx.UI.Common/App/ApplicationLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,19 +290,21 @@ public bool TryGetApplicationsFromFile(string applicationPath, out List<Applicat
}
case ".nsp":
case ".pfs0":
var pfs = new PartitionFileSystem();
pfs.Initialize(file.AsStorage()).ThrowIfFailure();
{
var pfs = new PartitionFileSystem();
pfs.Initialize(file.AsStorage()).ThrowIfFailure();

ApplicationData result = GetApplicationFromNsp(pfs, applicationPath);
ApplicationData result = GetApplicationFromNsp(pfs, applicationPath);

if (result == null)
{
return false;
}
if (result == null)
{
return false;
}

applications.Add(result);
applications.Add(result);

break;
break;
}
case ".nro":
{
BinaryReader reader = new(file);
Expand Down

0 comments on commit 025fa82

Please sign in to comment.