Browse Source
Merge pull request #2945 from FernandoS27/fix-bcat
nifm: Only return that there's an internet connection when there's a BCATServer
pull/15/merge
bunnei
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
17 additions and
3 deletions
-
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; |
|
|
|
}; |
|
|
|
|