summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2018-06-05 18:44:01 -0400
committerGravatar bunnei2018-06-05 23:54:02 -0400
commit2abe5e39fc428f27727b1f4b1b4c4f65477ffbbc (patch)
treec1e17c0f23e1bb16593c9bb5e6f594baffd20e4a
parentMerge pull request #516 from Subv/f2i_r (diff)
downloadyuzu-2abe5e39fc428f27727b1f4b1b4c4f65477ffbbc.tar.gz
yuzu-2abe5e39fc428f27727b1f4b1b4c4f65477ffbbc.tar.xz
yuzu-2abe5e39fc428f27727b1f4b1b4c4f65477ffbbc.zip
am: Stub out IApplicationFunctions::GetPseudoDeviceId.
-rw-r--r--src/core/hle/service/am/am.cpp13
-rw-r--r--src/core/hle/service/am/am.h1
2 files changed, 13 insertions, 1 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
687void 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
687void InstallInterfaces(SM::ServiceManager& service_manager, 698void 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
143class IHomeMenuFunctions final : public ServiceFramework<IHomeMenuFunctions> { 144class IHomeMenuFunctions final : public ServiceFramework<IHomeMenuFunctions> {