fs: add access log strings for DirectoryEntryType

This commit is contained in:
Michael Scire 2021-04-30 19:19:22 -07:00
parent 14ed4e4057
commit 7d61cab01c

View file

@ -156,6 +156,14 @@ namespace ams::fs::impl {
}
}
template<> const char *IdString::ToString<fs::DirectoryEntryType>(fs::DirectoryEntryType type) {
switch (type) {
case fs::DirectoryEntryType_Directory: return "Directory";
case fs::DirectoryEntryType_File: return "File";
default: return ToValueString(static_cast<int>(type));
}
}
namespace {
class AccessLogPrinterCallbackManager {