diff options
author | bunnei <bunneidev@gmail.com> | 2018-05-27 18:00:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-27 18:00:32 +0200 |
commit | 15c388e0d67678c9d0ab22c5ba7f7fb5b9ceb9f8 (patch) | |
tree | 9a112df5ae016e406a06bc370ba8d512ce16496e /src/core/hle | |
parent | Merge pull request #471 from bunnei/fmnmx (diff) | |
parent | am: Stub IApplicationFunctions GetDisplayVersion. (diff) | |
download | yuzu-15c388e0d67678c9d0ab22c5ba7f7fb5b9ceb9f8.tar yuzu-15c388e0d67678c9d0ab22c5ba7f7fb5b9ceb9f8.tar.gz yuzu-15c388e0d67678c9d0ab22c5ba7f7fb5b9ceb9f8.tar.bz2 yuzu-15c388e0d67678c9d0ab22c5ba7f7fb5b9ceb9f8.tar.lz yuzu-15c388e0d67678c9d0ab22c5ba7f7fb5b9ceb9f8.tar.xz yuzu-15c388e0d67678c9d0ab22c5ba7f7fb5b9ceb9f8.tar.zst yuzu-15c388e0d67678c9d0ab22c5ba7f7fb5b9ceb9f8.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/am/am.cpp | 10 | ||||
-rw-r--r-- | src/core/hle/service/am/am.h | 1 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 0223e0a5f..6b1d6bf97 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -490,7 +490,7 @@ IApplicationFunctions::IApplicationFunctions() : ServiceFramework("IApplicationF {20, &IApplicationFunctions::EnsureSaveData, "EnsureSaveData"}, {21, &IApplicationFunctions::GetDesiredLanguage, "GetDesiredLanguage"}, {22, &IApplicationFunctions::SetTerminateResult, "SetTerminateResult"}, - {23, nullptr, "GetDisplayVersion"}, + {23, &IApplicationFunctions::GetDisplayVersion, "GetDisplayVersion"}, {24, nullptr, "GetLaunchStorageInfoForDebug"}, {25, nullptr, "ExtendSaveData"}, {26, nullptr, "GetSaveDataSize"}, @@ -585,6 +585,14 @@ void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) { NGLOG_WARNING(Service_AM, "(STUBBED) called, result=0x{:08X}", result); } +void IApplicationFunctions::GetDisplayVersion(Kernel::HLERequestContext& ctx) { + IPC::ResponseBuilder rb{ctx, 6}; + rb.Push(RESULT_SUCCESS); + rb.Push<u64>(1); + rb.Push<u64>(0); + NGLOG_WARNING(Service_AM, "(STUBBED) called"); +} + void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) { // TODO(bunnei): This should be configurable IPC::ResponseBuilder rb{ctx, 4}; diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h index dd6158eb2..ff8eb14d7 100644 --- a/src/core/hle/service/am/am.h +++ b/src/core/hle/service/am/am.h @@ -132,6 +132,7 @@ private: void CreateApplicationAndRequestToStartForQuest(Kernel::HLERequestContext& ctx); void EnsureSaveData(Kernel::HLERequestContext& ctx); void SetTerminateResult(Kernel::HLERequestContext& ctx); + void GetDisplayVersion(Kernel::HLERequestContext& ctx); void GetDesiredLanguage(Kernel::HLERequestContext& ctx); void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx); void SetGamePlayRecordingState(Kernel::HLERequestContext& ctx); |