Skip to content

Commit

Permalink
[FS::Dir] Fix command response headers
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat committed Jul 16, 2023
1 parent 50742f7 commit f08fe10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/kernel/directory_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <string>
#include <utility>

#include "ipc.hpp"
#include "kernel.hpp"

namespace DirectoryOps {
Expand Down Expand Up @@ -104,6 +105,7 @@ void Kernel::closeDirectory(u32 messagePointer, Handle directory) {
}

p->getData<DirectorySession>()->isOpen = false;
mem.write32(messagePointer, IPC::responseHeader(0x802, 1, 0));
mem.write32(messagePointer + 4, Result::Success);
}

Expand Down Expand Up @@ -169,6 +171,7 @@ void Kernel::readDirectory(u32 messagePointer, Handle directory) {
session->currentEntry++; // Increment index of the entry currently being read
}

mem.write32(messagePointer, IPC::responseHeader(0x801, 2, 2));
mem.write32(messagePointer + 4, Result::Success);
mem.write32(messagePointer + 8, count);
}

0 comments on commit f08fe10

Please sign in to comment.