ams_mitm: implement hid mitm

This commit is contained in:
Michael Scire
2019-11-21 12:01:14 -08:00
committed by SciresM
parent 9c68bea16c
commit 5228768841
7 changed files with 196 additions and 8 deletions

View File

@@ -22,20 +22,24 @@ namespace ams::mitm::hid {
class HidMitmService : public sf::IMitmServiceObject {
private:
enum class CommandId {
/* TODO */
SetSupportedNpadStyleSet = 100,
};
public:
static bool ShouldMitm(const sm::MitmProcessInfo &client_info) {
/* TODO */
return false;
/* TODO: Remove in Atmosphere 0.10.1. */
/* We will mitm:
* - hbl, to help homebrew not need to be recompiled.
*/
return client_info.override_status.IsHbl();
}
public:
SF_MITM_SERVICE_OBJECT_CTOR(HidMitmService) { /* ... */ }
protected:
/* TODO */
/* Overridden commands. */
Result SetSupportedNpadStyleSet(const sf::ClientAppletResourceUserId &client_aruid, u32 style_set);
public:
DEFINE_SERVICE_DISPATCH_TABLE {
/* TODO */
MAKE_SERVICE_COMMAND_META(SetSupportedNpadStyleSet),
};
};