mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
Add ISaveDataIndexer.GetCount
This commit is contained in:
parent
bf8b975fa6
commit
436de21c86
2 changed files with 9 additions and 0 deletions
|
@ -15,6 +15,7 @@ namespace LibHac.FsService
|
||||||
Result SetState(ulong saveDataId, SaveDataState state);
|
Result SetState(ulong saveDataId, SaveDataState state);
|
||||||
Result GetKey(out SaveDataAttribute key, ulong saveDataId);
|
Result GetKey(out SaveDataAttribute key, ulong saveDataId);
|
||||||
Result GetBySaveDataId(out SaveDataIndexerValue value, ulong saveDataId);
|
Result GetBySaveDataId(out SaveDataIndexerValue value, ulong saveDataId);
|
||||||
|
int GetCount();
|
||||||
Result OpenSaveDataInfoReader(out ISaveDataInfoReader infoReader);
|
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)
|
public Result OpenSaveDataInfoReader(out ISaveDataInfoReader infoReader)
|
||||||
{
|
{
|
||||||
infoReader = default;
|
infoReader = default;
|
||||||
|
|
Loading…
Reference in a new issue