mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-31 06:48:22 -04:00
htc: implement the remaining commands for htcfs
This commit is contained in:
parent
1961cb1034
commit
d20bceff75
9 changed files with 1169 additions and 27 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue