[Kernel] Added support for XFileDispositionInformation

This is set and used in 415607DD to overwrite savefile
This commit is contained in:
Gliniak
2024-08-16 20:40:53 +02:00
parent 49584ff664
commit 651fdc0344
4 changed files with 14 additions and 2 deletions

View File

@@ -21,7 +21,12 @@ HostPathFile::HostPathFile(
HostPathFile::~HostPathFile() = default;
void HostPathFile::Destroy() { delete this; }
void HostPathFile::Destroy() {
if (entry_ && entry_->delete_on_close()) {
entry()->Delete();
}
delete this;
}
X_STATUS HostPathFile::ReadSync(void* buffer, size_t buffer_length,
size_t byte_offset, size_t* out_bytes_read) {