From 7d61cab01cef1b5872eb8575ae83c3fee2c0b623 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 --- libraries/libstratosphere/source/fs/fs_access_log.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libraries/libstratosphere/source/fs/fs_access_log.cpp b/libraries/libstratosphere/source/fs/fs_access_log.cpp index 3db8f330b..5e18e3cd2 100644 --- a/libraries/libstratosphere/source/fs/fs_access_log.cpp +++ b/libraries/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 {