summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Nguyen Dac Nam2020-02-16 13:24:34 +0700
committerGravatar GitHub2020-02-16 13:24:34 +0700
commit5257a83ebe837fdbe04dbe39927cac99aabca745 (patch)
treeed4769e6ffccd64ed25397f423e1436092bac689 /src/core
parentHLE: correct function name of IUserLocalCommunicationService (diff)
downloadyuzu-5257a83ebe837fdbe04dbe39927cac99aabca745.tar.gz
yuzu-5257a83ebe837fdbe04dbe39927cac99aabca745.tar.xz
yuzu-5257a83ebe837fdbe04dbe39927cac99aabca745.zip
IUserLocalCommunicationService: add function Initialize2
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/ldn/ldn.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/core/hle/service/ldn/ldn.cpp b/src/core/hle/service/ldn/ldn.cpp
index 15aa12645..92adde6d4 100644
--- a/src/core/hle/service/ldn/ldn.cpp
+++ b/src/core/hle/service/ldn/ldn.cpp
@@ -129,12 +129,20 @@ public:
129 {304, nullptr, "Disconnect"}, 129 {304, nullptr, "Disconnect"},
130 {400, nullptr, "Initialize"}, 130 {400, nullptr, "Initialize"},
131 {401, nullptr, "Finalize"}, 131 {401, nullptr, "Finalize"},
132 {402, nullptr, "Initialize2"}, 132 {402, &IUserLocalCommunicationService::Initialize2, "Initialize2"}, // 7.0.0+
133 }; 133 };
134 // clang-format on 134 // clang-format on
135 135
136 RegisterHandlers(functions); 136 RegisterHandlers(functions);
137 } 137 }
138
139 void Initialize2(Kernel::HLERequestContext& ctx) {
140 LOG_WARNING(Service_LDN, "(STUBBED) called");
141 // Result success seem make this services start network and continue.
142 // If we just pass result error then it will stop and maybe try again and again.
143 IPC::ResponseBuilder rb{ctx, 2};
144 rb.Push(RESULT_UNKNOWN);
145 }
138}; 146};
139 147
140class LDNS final : public ServiceFramework<LDNS> { 148class LDNS final : public ServiceFramework<LDNS> {