From 2fc9035b7dc1cb820d7ebdca674d6382d2e0d85a Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 30 Apr 2021 19:19:22 -0700 Subject: [PATCH] fs: add access log strings for DirectoryEntryType --- libstratosphere/source/fs/fs_access_log.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libstratosphere/source/fs/fs_access_log.cpp b/libstratosphere/source/fs/fs_access_log.cpp index 3db8f330..5e18e3cd 100644 --- a/libstratosphere/source/fs/fs_access_log.cpp +++ b/libstratosphere/source/fs/fs_access_log.cpp @@ -156,6 +156,14 @@ namespace ams::fs::impl { } } + template<> const char *IdString::ToString(fs::DirectoryEntryType type) { + switch (type) { + case fs::DirectoryEntryType_Directory: return "Directory"; + case fs::DirectoryEntryType_File: return "File"; + default: return ToValueString(static_cast(type)); + } + } + namespace { class AccessLogPrinterCallbackManager {