diff options
| author | 2019-10-05 20:00:54 -0400 | |
|---|---|---|
| committer | 2019-11-06 23:10:32 -0500 | |
| commit | 3c95e49c42d7fdcbf62b50d98233eb3e0f380106 (patch) | |
| tree | 1b85bef2f7ac8100f341028bd7520fb572b325e1 /src | |
| parent | Merge pull request #3077 from yuzu-emu/revert-3073-azure-rename-partial (diff) | |
| download | yuzu-3c95e49c42d7fdcbf62b50d98233eb3e0f380106.tar.gz yuzu-3c95e49c42d7fdcbf62b50d98233eb3e0f380106.tar.xz yuzu-3c95e49c42d7fdcbf62b50d98233eb3e0f380106.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/nifm/nifm.cpp | 20 |
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 @@ | |||
| 9 | #include "core/hle/kernel/writable_event.h" | 9 | #include "core/hle/kernel/writable_event.h" |
| 10 | #include "core/hle/service/nifm/nifm.h" | 10 | #include "core/hle/service/nifm/nifm.h" |
| 11 | #include "core/hle/service/service.h" | 11 | #include "core/hle/service/service.h" |
| 12 | #include "core/settings.h" | ||
| 12 | 13 | ||
| 13 | namespace Service::NIFM { | 14 | namespace Service::NIFM { |
| 14 | 15 | ||
| @@ -86,7 +87,12 @@ private: | |||
| 86 | 87 | ||
| 87 | IPC::ResponseBuilder rb{ctx, 3}; | 88 | IPC::ResponseBuilder rb{ctx, 3}; |
| 88 | rb.Push(RESULT_SUCCESS); | 89 | rb.Push(RESULT_SUCCESS); |
| 89 | rb.PushEnum(RequestState::Connected); | 90 | |
| 91 | if (Settings::values.bcat_backend == "none") { | ||
| 92 | rb.PushEnum(RequestState::NotSubmitted); | ||
| 93 | } else { | ||
| 94 | rb.PushEnum(RequestState::Connected); | ||
| 95 | } | ||
| 90 | } | 96 | } |
| 91 | 97 | ||
| 92 | void GetResult(Kernel::HLERequestContext& ctx) { | 98 | void GetResult(Kernel::HLERequestContext& ctx) { |
| @@ -194,14 +200,22 @@ private: | |||
| 194 | 200 | ||
| 195 | IPC::ResponseBuilder rb{ctx, 3}; | 201 | IPC::ResponseBuilder rb{ctx, 3}; |
| 196 | rb.Push(RESULT_SUCCESS); | 202 | rb.Push(RESULT_SUCCESS); |
| 197 | rb.Push<u8>(1); | 203 | if (Settings::values.bcat_backend == "none") { |
| 204 | rb.Push<u8>(0); | ||
| 205 | } else { | ||
| 206 | rb.Push<u8>(1); | ||
| 207 | } | ||
| 198 | } | 208 | } |
| 199 | void IsAnyInternetRequestAccepted(Kernel::HLERequestContext& ctx) { | 209 | void IsAnyInternetRequestAccepted(Kernel::HLERequestContext& ctx) { |
| 200 | LOG_WARNING(Service_NIFM, "(STUBBED) called"); | 210 | LOG_WARNING(Service_NIFM, "(STUBBED) called"); |
| 201 | 211 | ||
| 202 | IPC::ResponseBuilder rb{ctx, 3}; | 212 | IPC::ResponseBuilder rb{ctx, 3}; |
| 203 | rb.Push(RESULT_SUCCESS); | 213 | rb.Push(RESULT_SUCCESS); |
| 204 | rb.Push<u8>(1); | 214 | if (Settings::values.bcat_backend == "none") { |
| 215 | rb.Push<u8>(0); | ||
| 216 | } else { | ||
| 217 | rb.Push<u8>(1); | ||
| 218 | } | ||
| 205 | } | 219 | } |
| 206 | Core::System& system; | 220 | Core::System& system; |
| 207 | }; | 221 | }; |