summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nifm/nifm.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-10-06 02:00:54 +0200
committerbunnei <bunneidev@gmail.com>2019-11-07 05:10:32 +0100
commit3c95e49c42d7fdcbf62b50d98233eb3e0f380106 (patch)
tree1b85bef2f7ac8100f341028bd7520fb572b325e1 /src/core/hle/service/nifm/nifm.cpp
parentMerge pull request #3077 from yuzu-emu/revert-3073-azure-rename-partial (diff)
downloadyuzu-3c95e49c42d7fdcbf62b50d98233eb3e0f380106.tar
yuzu-3c95e49c42d7fdcbf62b50d98233eb3e0f380106.tar.gz
yuzu-3c95e49c42d7fdcbf62b50d98233eb3e0f380106.tar.bz2
yuzu-3c95e49c42d7fdcbf62b50d98233eb3e0f380106.tar.lz
yuzu-3c95e49c42d7fdcbf62b50d98233eb3e0f380106.tar.xz
yuzu-3c95e49c42d7fdcbf62b50d98233eb3e0f380106.tar.zst
yuzu-3c95e49c42d7fdcbf62b50d98233eb3e0f380106.zip
Diffstat (limited to 'src/core/hle/service/nifm/nifm.cpp')
-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 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<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;
};