diff options
author | bunnei <bunneidev@gmail.com> | 2018-06-06 00:44:01 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-06-06 05:54:02 +0200 |
commit | 2abe5e39fc428f27727b1f4b1b4c4f65477ffbbc (patch) | |
tree | c1e17c0f23e1bb16593c9bb5e6f594baffd20e4a /src | |
parent | Merge pull request #516 from Subv/f2i_r (diff) | |
download | yuzu-2abe5e39fc428f27727b1f4b1b4c4f65477ffbbc.tar yuzu-2abe5e39fc428f27727b1f4b1b4c4f65477ffbbc.tar.gz yuzu-2abe5e39fc428f27727b1f4b1b4c4f65477ffbbc.tar.bz2 yuzu-2abe5e39fc428f27727b1f4b1b4c4f65477ffbbc.tar.lz yuzu-2abe5e39fc428f27727b1f4b1b4c4f65477ffbbc.tar.xz yuzu-2abe5e39fc428f27727b1f4b1b4c4f65477ffbbc.tar.zst yuzu-2abe5e39fc428f27727b1f4b1b4c4f65477ffbbc.zip |
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 |
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 {32, nullptr, "BeginBlockingHomeButton"}, {33, nullptr, "EndBlockingHomeButton"}, {40, &IApplicationFunctions::NotifyRunning, "NotifyRunning"}, - {50, nullptr, "GetPseudoDeviceId"}, + {50, &IApplicationFunctions::GetPseudoDeviceId, "GetPseudoDeviceId"}, {60, nullptr, "SetMediaPlaybackStateForApplication"}, {65, nullptr, "IsGamePlayRecordingSupported"}, {66, &IApplicationFunctions::InitializeGamePlayRecording, "InitializeGamePlayRecording"}, @@ -684,6 +684,17 @@ void IApplicationFunctions::NotifyRunning(Kernel::HLERequestContext& ctx) { NGLOG_WARNING(Service_AM, "(STUBBED) called"); } +void IApplicationFunctions::GetPseudoDeviceId(Kernel::HLERequestContext& ctx) { + IPC::ResponseBuilder rb{ctx, 6}; + rb.Push(RESULT_SUCCESS); + + // Returns a 128-bit UUID + rb.Push<u64>(0); + rb.Push<u64>(0); + + NGLOG_WARNING(Service_AM, "(STUBBED) called"); +} + void InstallInterfaces(SM::ServiceManager& service_manager, std::shared_ptr<NVFlinger::NVFlinger> nvflinger) { 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: void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx); void SetGamePlayRecordingState(Kernel::HLERequestContext& ctx); void NotifyRunning(Kernel::HLERequestContext& ctx); + void GetPseudoDeviceId(Kernel::HLERequestContext& ctx); }; class IHomeMenuFunctions final : public ServiceFramework<IHomeMenuFunctions> { |