htc: implement the remaining commands for htcfs

This commit is contained in:
Michael Scire 2021-02-15 18:56:22 -08:00 committed by SciresM
parent 1961cb1034
commit d20bceff75
9 changed files with 1169 additions and 27 deletions

View file

@ -51,6 +51,16 @@ namespace ams::htcfs {
m_has_cached_handle = false;
}
void Invalidate(s32 handle) {
/* Lock ourselves. */
std::scoped_lock lk(m_mutex);
if (m_has_cached_handle && m_cached_handle == handle) {
/* Note that we have no handle. */
m_has_cached_handle = false;
}
}
void Record(s64 file_size, const void *data, s32 handle, size_t data_size) {
/* Lock ourselves. */
std::scoped_lock lk(m_mutex);