This commit is contained in:
daisymlleung
2023-11-26 01:22:18 +08:00
committed by GitHub
parent 565a4fd7b7
commit 4356de9c28
+1 -12
View File
@@ -236,19 +236,8 @@ private:
void GetResult(HLERequestContext& ctx) {
LOG_DEBUG(Service_NIFM, "(STUBBED) called");
const auto result = [this] {
const auto has_connection = Network::GetHostIPv4Address().has_value();
switch (state) {
case RequestState::NotSubmitted:
return has_connection ? ResultSuccess : ResultNetworkCommunicationDisabled;
case RequestState::Accepted:
default:
return ResultSuccess;
}
}();
IPC::ResponseBuilder rb{ctx, 2};
rb.Push(result);
rb.Push(ResultSuccess);
}
void GetSystemEventReadableHandles(HLERequestContext& ctx) {