diff options
| author | 2018-06-06 08:29:12 -0500 | |
|---|---|---|
| committer | 2018-06-06 08:29:12 -0500 | |
| commit | 2f842a86fe958ef56d01f8d579b164f7f0693da1 (patch) | |
| tree | 65c8ea95f8cccac54910a9a58dfe4b43f43d9330 /src | |
| parent | Merge pull request #531 from bunnei/fix-shl (diff) | |
| parent | nifm: Stub out IRequest::SetConnectionConfirmationOption. (diff) | |
| download | yuzu-2f842a86fe958ef56d01f8d579b164f7f0693da1.tar.gz yuzu-2f842a86fe958ef56d01f8d579b164f7f0693da1.tar.xz yuzu-2f842a86fe958ef56d01f8d579b164f7f0693da1.zip | |
Merge pull request #529 from bunnei/am-nifm-stubs
Stub SetConnectionConfirmationOption, GetPseudoDeviceId
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 13 | ||||
| -rw-r--r-- | src/core/hle/service/am/am.h | 1 | ||||
| -rw-r--r-- | src/core/hle/service/nifm/nifm.cpp | 11 |
3 files changed, 23 insertions, 2 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 12954556d..b8d6b8d4d 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -561,7 +561,7 @@ IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationF | |||
| 561 | {32, nullptr, "BeginBlockingHomeButton"}, | 561 | {32, nullptr, "BeginBlockingHomeButton"}, |
| 562 | {33, nullptr, "EndBlockingHomeButton"}, | 562 | {33, nullptr, "EndBlockingHomeButton"}, |
| 563 | {40, &IApplicationFunctions::NotifyRunning, "NotifyRunning"}, | 563 | {40, &IApplicationFunctions::NotifyRunning, "NotifyRunning"}, |
| 564 | {50, nullptr, "GetPseudoDeviceId"}, | 564 | {50, &IApplicationFunctions::GetPseudoDeviceId, "GetPseudoDeviceId"}, |
| 565 | {60, nullptr, "SetMediaPlaybackStateForApplication"}, | 565 | {60, nullptr, "SetMediaPlaybackStateForApplication"}, |
| 566 | {65, nullptr, "IsGamePlayRecordingSupported"}, | 566 | {65, nullptr, "IsGamePlayRecordingSupported"}, |
| 567 | {66, &IApplicationFunctions::InitializeGamePlayRecording, "InitializeGamePlayRecording"}, | 567 | {66, &IApplicationFunctions::InitializeGamePlayRecording, "InitializeGamePlayRecording"}, |
| @@ -684,6 +684,17 @@ void IApplicationFunctions::NotifyRunning(Kernel::HLERequestContext& ctx) { | |||
| 684 | NGLOG_WARNING(Service_AM, "(STUBBED) called"); | 684 | NGLOG_WARNING(Service_AM, "(STUBBED) called"); |
| 685 | } | 685 | } |
| 686 | 686 | ||
| 687 | void IApplicationFunctions::GetPseudoDeviceId(Kernel::HLERequestContext& ctx) { | ||
| 688 | IPC::ResponseBuilder rb{ctx, 6}; | ||
| 689 | rb.Push(RESULT_SUCCESS); | ||
| 690 | |||
| 691 | // Returns a 128-bit UUID | ||
| 692 | rb.Push<u64>(0); | ||
| 693 | rb.Push<u64>(0); | ||
| 694 | |||
| 695 | NGLOG_WARNING(Service_AM, "(STUBBED) called"); | ||
| 696 | } | ||
| 697 | |||
| 687 | void InstallInterfaces(SM::ServiceManager& service_manager, | 698 | void InstallInterfaces(SM::ServiceManager& service_manager, |
| 688 | std::shared_ptr<NVFlinger::NVFlinger> nvflinger) { | 699 | std::shared_ptr<NVFlinger::NVFlinger> nvflinger) { |
| 689 | std::make_shared<AppletAE>(nvflinger)->InstallAsService(service_manager); | 700 | std::make_shared<AppletAE>(nvflinger)->InstallAsService(service_manager); |
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h index 301a6c798..1da79fd01 100644 --- a/src/core/hle/service/am/am.h +++ b/src/core/hle/service/am/am.h | |||
| @@ -138,6 +138,7 @@ private: | |||
| 138 | void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx); | 138 | void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx); |
| 139 | void SetGamePlayRecordingState(Kernel::HLERequestContext& ctx); | 139 | void SetGamePlayRecordingState(Kernel::HLERequestContext& ctx); |
| 140 | void NotifyRunning(Kernel::HLERequestContext& ctx); | 140 | void NotifyRunning(Kernel::HLERequestContext& ctx); |
| 141 | void GetPseudoDeviceId(Kernel::HLERequestContext& ctx); | ||
| 141 | }; | 142 | }; |
| 142 | 143 | ||
| 143 | class IHomeMenuFunctions final : public ServiceFramework<IHomeMenuFunctions> { | 144 | class IHomeMenuFunctions final : public ServiceFramework<IHomeMenuFunctions> { |
diff --git a/src/core/hle/service/nifm/nifm.cpp b/src/core/hle/service/nifm/nifm.cpp index eee92cfcd..62489c7fe 100644 --- a/src/core/hle/service/nifm/nifm.cpp +++ b/src/core/hle/service/nifm/nifm.cpp | |||
| @@ -38,7 +38,7 @@ public: | |||
| 38 | {8, nullptr, "SetPriority"}, | 38 | {8, nullptr, "SetPriority"}, |
| 39 | {9, nullptr, "SetNetworkProfileId"}, | 39 | {9, nullptr, "SetNetworkProfileId"}, |
| 40 | {10, nullptr, "SetRejectable"}, | 40 | {10, nullptr, "SetRejectable"}, |
| 41 | {11, nullptr, "SetConnectionConfirmationOption"}, | 41 | {11, &IRequest::SetConnectionConfirmationOption, "SetConnectionConfirmationOption"}, |
| 42 | {12, nullptr, "SetPersistent"}, | 42 | {12, nullptr, "SetPersistent"}, |
| 43 | {13, nullptr, "SetInstant"}, | 43 | {13, nullptr, "SetInstant"}, |
| 44 | {14, nullptr, "SetSustainable"}, | 44 | {14, nullptr, "SetSustainable"}, |
| @@ -67,23 +67,32 @@ private: | |||
| 67 | rb.Push(RESULT_SUCCESS); | 67 | rb.Push(RESULT_SUCCESS); |
| 68 | rb.Push<u32>(0); | 68 | rb.Push<u32>(0); |
| 69 | } | 69 | } |
| 70 | |||
| 70 | void GetResult(Kernel::HLERequestContext& ctx) { | 71 | void GetResult(Kernel::HLERequestContext& ctx) { |
| 71 | NGLOG_WARNING(Service_NIFM, "(STUBBED) called"); | 72 | NGLOG_WARNING(Service_NIFM, "(STUBBED) called"); |
| 72 | IPC::ResponseBuilder rb{ctx, 2}; | 73 | IPC::ResponseBuilder rb{ctx, 2}; |
| 73 | rb.Push(RESULT_SUCCESS); | 74 | rb.Push(RESULT_SUCCESS); |
| 74 | } | 75 | } |
| 76 | |||
| 75 | void GetSystemEventReadableHandles(Kernel::HLERequestContext& ctx) { | 77 | void GetSystemEventReadableHandles(Kernel::HLERequestContext& ctx) { |
| 76 | NGLOG_WARNING(Service_NIFM, "(STUBBED) called"); | 78 | NGLOG_WARNING(Service_NIFM, "(STUBBED) called"); |
| 77 | IPC::ResponseBuilder rb{ctx, 2, 2}; | 79 | IPC::ResponseBuilder rb{ctx, 2, 2}; |
| 78 | rb.Push(RESULT_SUCCESS); | 80 | rb.Push(RESULT_SUCCESS); |
| 79 | rb.PushCopyObjects(event1, event2); | 81 | rb.PushCopyObjects(event1, event2); |
| 80 | } | 82 | } |
| 83 | |||
| 81 | void Cancel(Kernel::HLERequestContext& ctx) { | 84 | void Cancel(Kernel::HLERequestContext& ctx) { |
| 82 | NGLOG_WARNING(Service_NIFM, "(STUBBED) called"); | 85 | NGLOG_WARNING(Service_NIFM, "(STUBBED) called"); |
| 83 | IPC::ResponseBuilder rb{ctx, 2}; | 86 | IPC::ResponseBuilder rb{ctx, 2}; |
| 84 | rb.Push(RESULT_SUCCESS); | 87 | rb.Push(RESULT_SUCCESS); |
| 85 | } | 88 | } |
| 86 | 89 | ||
| 90 | void SetConnectionConfirmationOption(Kernel::HLERequestContext& ctx) { | ||
| 91 | NGLOG_WARNING(Service_NIFM, "(STUBBED) called"); | ||
| 92 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 93 | rb.Push(RESULT_SUCCESS); | ||
| 94 | } | ||
| 95 | |||
| 87 | Kernel::SharedPtr<Kernel::Event> event1, event2; | 96 | Kernel::SharedPtr<Kernel::Event> event1, event2; |
| 88 | }; | 97 | }; |
| 89 | 98 | ||