Stub OpenAudioOut and fix a issue with HID IAppletResource being created more than once
This commit is contained in:
parent
07355cf7cc
commit
832009bfdb
3 changed files with 21 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue