tmp-hid-mitm: less aggressively enable controllers

This fixes a crash in SSBU and possibly other games.
This commit is contained in:
Michael Scire
2019-09-14 13:37:31 -07:00
parent c62c4846fc
commit a750e55f75
2 changed files with 45 additions and 2 deletions

View File

@@ -25,11 +25,15 @@ class HidMitmService : public IMitmServiceObject {
enum class CommandId {
SetSupportedNpadStyleSet = 100,
};
private:
bool should_set_system_ext = false;
public:
HidMitmService(std::shared_ptr<Service> s, u64 pid, sts::ncm::TitleId tid) : IMitmServiceObject(s, pid, tid) {
/* ... */
}
~HidMitmService();
static bool ShouldMitm(u64 pid, sts::ncm::TitleId tid) {
/* TODO: Consider removing in Atmosphere 0.10.0/1.0.0. */
/* We will mitm: