htcfs: implement OpenDirectory/CloseDirectory

This commit is contained in:
Michael Scire
2021-02-13 01:57:24 -08:00
committed by SciresM
parent b371487525
commit e79417c37c
9 changed files with 209 additions and 13 deletions

View File

@@ -15,14 +15,14 @@
*/
#include <stratosphere.hpp>
#include "htcfs_directory_service_object.hpp"
#include "htcfs_client.hpp"
namespace ams::htcfs {
DirectoryServiceObject::DirectoryServiceObject(s32 handle) : m_handle(handle) { /* ... */ }
DirectoryServiceObject::~DirectoryServiceObject() {
/* TODO */
AMS_ABORT("htcfs::GetClient().CloseDirectory(m_handle);");
htcfs::GetClient().CloseDirectory(m_handle);
}
Result DirectoryServiceObject::GetEntryCount(ams::sf::Out<s64> out) {