htcfs: implement OpenDirectory/CloseDirectory

This commit is contained in:
Michael Scire authored and SciresM committed 2021-02-24 04:06:54 -08:00
1 parent b371487525
commit e79417c37c
9 files changed
+209 -13

No files matched your search

@@ -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) {