mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-17 16:44:22 -04:00
fs: properly implement OperateRangeWithBuffer, correct OperationId names.
This commit is contained in:
parent
eb5542963f
commit
0dc308d92a
17 changed files with 54 additions and 34 deletions
|
@ -87,7 +87,7 @@ namespace ams::fssystem {
|
|||
virtual Result DoOperateRange(void *dst, size_t dst_size, fs::OperationId op_id, s64 offset, s64 size, const void *src, size_t src_size) override final {
|
||||
/* Validate preconditions for operation. */
|
||||
switch (op_id) {
|
||||
case fs::OperationId::InvalidateCache:
|
||||
case fs::OperationId::Invalidate:
|
||||
R_UNLESS((this->mode & fs::OpenMode_Read) != 0, fs::ResultReadNotPermitted());
|
||||
R_UNLESS((this->mode & fs::OpenMode_Write) == 0, fs::ResultUnsupportedOperationInPartitionFileB());
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue