diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-04-29 00:44:13 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-09-30 23:21:53 +0200 |
commit | 532ec459b8661cd5fe0bdff73758b474a54ed94c (patch) | |
tree | 9e4be510933839709e161a61e6e8f7a4ecf48fa3 /src/core | |
parent | core/loader: Track the NSO build ID of the current process (diff) | |
download | yuzu-532ec459b8661cd5fe0bdff73758b474a54ed94c.tar yuzu-532ec459b8661cd5fe0bdff73758b474a54ed94c.tar.gz yuzu-532ec459b8661cd5fe0bdff73758b474a54ed94c.tar.bz2 yuzu-532ec459b8661cd5fe0bdff73758b474a54ed94c.tar.lz yuzu-532ec459b8661cd5fe0bdff73758b474a54ed94c.tar.xz yuzu-532ec459b8661cd5fe0bdff73758b474a54ed94c.tar.zst yuzu-532ec459b8661cd5fe0bdff73758b474a54ed94c.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/nifm/nifm.cpp | 13 |
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; }; |