mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Filter savedata info rank correctly
This commit is contained in:
parent
e8bef8af6a
commit
76598cfac9
1 changed files with 4 additions and 2 deletions
|
@ -149,8 +149,10 @@ namespace LibHac.FsService
|
|||
return false;
|
||||
}
|
||||
|
||||
// When filtering by secondary rank include primary ranks as well
|
||||
if ((Rank & 1) == 1 || info.Rank == SaveDataRank.Primary)
|
||||
var filterRank = (SaveDataRank)(Rank & 1);
|
||||
|
||||
// When filtering by secondary rank, match on both primary and secondary ranks
|
||||
if (filterRank == SaveDataRank.Primary && info.Rank == SaveDataRank.Secondary)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue