mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2025-02-09 13:14:46 +01:00
Add ISaveDataIndexer.GetCount
This commit is contained in:
parent
bf8b975fa6
commit
436de21c86
@ -15,6 +15,7 @@ namespace LibHac.FsService
|
||||
Result SetState(ulong saveDataId, SaveDataState state);
|
||||
Result GetKey(out SaveDataAttribute key, ulong saveDataId);
|
||||
Result GetBySaveDataId(out SaveDataIndexerValue value, ulong saveDataId);
|
||||
int GetCount();
|
||||
Result OpenSaveDataInfoReader(out ISaveDataInfoReader infoReader);
|
||||
}
|
||||
}
|
@ -344,6 +344,14 @@ namespace LibHac.FsService
|
||||
}
|
||||
}
|
||||
|
||||
public int GetCount()
|
||||
{
|
||||
lock (Locker)
|
||||
{
|
||||
return KvDatabase.Count;
|
||||
}
|
||||
}
|
||||
|
||||
public Result OpenSaveDataInfoReader(out ISaveDataInfoReader infoReader)
|
||||
{
|
||||
infoReader = default;
|
||||
|
Loading…
x
Reference in New Issue
Block a user