summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nifm/nifm.cpp
diff options
context:
space:
mode:
authorDavid <25727384+ogniK5377@users.noreply.github.com>2019-10-03 11:06:13 +0200
committerGitHub <noreply@github.com>2019-10-03 11:06:13 +0200
commit9aac7fbc22d07a50e6d71dc17da2d8c2eba63968 (patch)
tree26f9fdb35b1ddaf2fe28d7a4867c69a9e5ad4b35 /src/core/hle/service/nifm/nifm.cpp
parentMerge pull request #2937 from DarkLordZach/azure-msvc (diff)
parentqt: Add service dialog (diff)
downloadyuzu-9aac7fbc22d07a50e6d71dc17da2d8c2eba63968.tar
yuzu-9aac7fbc22d07a50e6d71dc17da2d8c2eba63968.tar.gz
yuzu-9aac7fbc22d07a50e6d71dc17da2d8c2eba63968.tar.bz2
yuzu-9aac7fbc22d07a50e6d71dc17da2d8c2eba63968.tar.lz
yuzu-9aac7fbc22d07a50e6d71dc17da2d8c2eba63968.tar.xz
yuzu-9aac7fbc22d07a50e6d71dc17da2d8c2eba63968.tar.zst
yuzu-9aac7fbc22d07a50e6d71dc17da2d8c2eba63968.zip
Diffstat (limited to 'src/core/hle/service/nifm/nifm.cpp')
-rw-r--r--src/core/hle/service/nifm/nifm.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp
index 24d1813a7..756a2af57 100644
--- a/src/core/hle/service/nifm/nifm.cpp
+++ b/src/core/hle/service/nifm/nifm.cpp
@@ -12,6 +12,13 @@
namespace Service::NIFM {
+enum class RequestState : u32 {
+ NotSubmitted = 1,
+ Error = 1, ///< The duplicate 1 is intentional; it means both not submitted and error on HW.
+ Pending = 2,
+ Connected = 3,
+};
+
class IScanRequest final : public ServiceFramework<IScanRequest> {
public:
explicit IScanRequest() : ServiceFramework("IScanRequest") {
@@ -81,7 +88,7 @@ private:
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
- rb.Push<u32>(0);
+ rb.PushEnum(RequestState::Connected);
}
void GetResult(Kernel::HLERequestContext& ctx) {
@@ -189,14 +196,14 @@ private:
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
- rb.Push<u8>(0);
+ 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>(0);
+ rb.Push<u8>(1);
}
Core::System& system;
};