From 3c95e49c42d7fdcbf62b50d98233eb3e0f380106 Mon Sep 17 00:00:00 2001 From: Fernando Sahmkow Date: Sat, 5 Oct 2019 20:00:54 -0400 Subject: nifm: Only return that there's an internet connection when there's a BCATServer This helps games that need internet for other purposes boot as the rest of our internet infrastructure is incomplete. --- src/core/hle/service/nifm/nifm.cpp | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp index 01d557c7a..feb176668 100644 --- a/src/core/hle/service/nifm/nifm.cpp +++ b/src/core/hle/service/nifm/nifm.cpp @@ -9,6 +9,7 @@ #include "core/hle/kernel/writable_event.h" #include "core/hle/service/nifm/nifm.h" #include "core/hle/service/service.h" +#include "core/settings.h" namespace Service::NIFM { @@ -86,7 +87,12 @@ private: IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); - rb.PushEnum(RequestState::Connected); + + if (Settings::values.bcat_backend == "none") { + rb.PushEnum(RequestState::NotSubmitted); + } else { + rb.PushEnum(RequestState::Connected); + } } void GetResult(Kernel::HLERequestContext& ctx) { @@ -194,14 +200,22 @@ private: IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); - rb.Push(1); + if (Settings::values.bcat_backend == "none") { + rb.Push(0); + } else { + rb.Push(1); + } } void IsAnyInternetRequestAccepted(Kernel::HLERequestContext& ctx) { LOG_WARNING(Service_NIFM, "(STUBBED) called"); IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); - rb.Push(1); + if (Settings::values.bcat_backend == "none") { + rb.Push(0); + } else { + rb.Push(1); + } } Core::System& system; }; -- cgit v1.2.3