Stub OpenAudioOut and fix a issue with HID IAppletResource being created more than once

This commit is contained in:
gdkchan 2018-01-22 17:27:55 -03:00
parent 07355cf7cc
commit 832009bfdb
3 changed files with 21 additions and 2 deletions

View file

@ -162,8 +162,13 @@ public:
~Hid() = default;
private:
Kernel::SharedPtr<Kernel::ClientPort> client_port;
void CreateAppletResource(Kernel::HLERequestContext& ctx) {
auto client_port = std::make_shared<IAppletResource>()->CreatePort();
if (client_port == nullptr) {
client_port = std::make_shared<IAppletResource>()->CreatePort();
}
auto session = client_port->Connect();
if (session.Succeeded()) {
LOG_DEBUG(Service, "called, initialized IAppletResource -> session=%u",