mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
[FS] Add directory stuff, clean up
This commit is contained in:
parent
3ca324350b
commit
4bef096f04
10 changed files with 70 additions and 9 deletions
|
@ -91,6 +91,14 @@ void Kernel::sendSyncRequest() {
|
|||
return;
|
||||
}
|
||||
|
||||
// Check if our sync request is targetting a directory instead of a service
|
||||
bool isDirectoryOperation = getObject(handle, KernelObjectType::Directory) != nullptr;
|
||||
if (isDirectoryOperation) {
|
||||
handleDirectoryOperation(messagePointer, handle);
|
||||
regs[0] = SVCResult::Success;
|
||||
return;
|
||||
}
|
||||
|
||||
// If we're actually communicating with a port
|
||||
const auto session = getObject(handle, KernelObjectType::Session);
|
||||
if (session == nullptr) [[unlikely]] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue