summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-01-05 08:17:16 +0100
committerGitHub <noreply@github.com>2020-01-05 08:17:16 +0100
commit6fe51f398f865490b0a65f6054005287d2b50f08 (patch)
treedb2ff359591e995da5c68e33fbf22d6ff7efc231 /src
parentMerge pull request #3258 from FernandoS27/shader-amend (diff)
parentnifm: Only return that there's an internet connection when there's a BCATServer (diff)
downloadyuzu-6fe51f398f865490b0a65f6054005287d2b50f08.tar
yuzu-6fe51f398f865490b0a65f6054005287d2b50f08.tar.gz
yuzu-6fe51f398f865490b0a65f6054005287d2b50f08.tar.bz2
yuzu-6fe51f398f865490b0a65f6054005287d2b50f08.tar.lz
yuzu-6fe51f398f865490b0a65f6054005287d2b50f08.tar.xz
yuzu-6fe51f398f865490b0a65f6054005287d2b50f08.tar.zst
yuzu-6fe51f398f865490b0a65f6054005287d2b50f08.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nifm/nifm.cpp20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp
index 2e53b3221..767158444 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<u8>(1);
+ if (Settings::values.bcat_backend == "none") {
+ rb.Push<u8>(0);
+ } else {
+ rb.Push<u8>(1);
+ }
}
void IsAnyInternetRequestAccepted(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service_NIFM, "(STUBBED) called");
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
- rb.Push<u8>(1);
+ if (Settings::values.bcat_backend == "none") {
+ rb.Push<u8>(0);
+ } else {
+ rb.Push<u8>(1);
+ }
}
Core::System& system;
};