From 276c3f84345d0502264df5d88fb1125cfd3ab1ae Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 9 Feb 2021 04:35:30 -0800 Subject: [PATCH] htc: module id names, skeleton rest of main --- .../stratosphere/htclow/htclow_module_types.hpp | 4 +++- .../htclow/ctrl/htclow_ctrl_service_channels.hpp | 16 ++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/libstratosphere/include/stratosphere/htclow/htclow_module_types.hpp b/libstratosphere/include/stratosphere/htclow/htclow_module_types.hpp index ef8c92e3..f5a8817e 100644 --- a/libstratosphere/include/stratosphere/htclow/htclow_module_types.hpp +++ b/libstratosphere/include/stratosphere/htclow/htclow_module_types.hpp @@ -20,7 +20,9 @@ namespace ams::htclow { enum class ModuleId : u8 { - /* ... */ + Htcfs = 1, + Htcmisc = 3, + Htcs = 4, }; struct ModuleType { diff --git a/libstratosphere/source/htclow/ctrl/htclow_ctrl_service_channels.hpp b/libstratosphere/source/htclow/ctrl/htclow_ctrl_service_channels.hpp index bcaf32b9..d42bb45c 100644 --- a/libstratosphere/source/htclow/ctrl/htclow_ctrl_service_channels.hpp +++ b/libstratosphere/source/htclow/ctrl/htclow_ctrl_service_channels.hpp @@ -20,20 +20,20 @@ namespace ams::htclow::ctrl { constexpr inline const impl::ChannelInternalType ServiceChannels[] = { { - .channel_id = 0, - .module_id = static_cast(1), + .channel_id = 0, /* TODO: htcfs::ChannelId? */ + .module_id = ModuleId::Htcfs, }, { - .channel_id = 1, - .module_id = static_cast(3), + .channel_id = 1, /* TODO: htcmisc::ServerChannelId? */ + .module_id = ModuleId::Htcmisc, }, { - .channel_id = 2, - .module_id = static_cast(3), + .channel_id = 2, /* TODO: htcmisc::ClientChannelId? */ + .module_id = ModuleId::Htcmisc, }, { - .channel_id = 0, - .module_id = static_cast(4), + .channel_id = 0, /* TODO: htcs::ChannelId? */ + .module_id = ModuleId::Htcs, }, };