summaryrefslogtreecommitdiff
path: root/src/core/hle
diff options
context:
space:
mode:
authorGravatar bunnei2018-05-27 12:00:32 -0400
committerGravatar GitHub2018-05-27 12:00:32 -0400
commit15c388e0d67678c9d0ab22c5ba7f7fb5b9ceb9f8 (patch)
tree9a112df5ae016e406a06bc370ba8d512ce16496e /src/core/hle
parentMerge pull request #471 from bunnei/fmnmx (diff)
parentam: Stub IApplicationFunctions GetDisplayVersion. (diff)
downloadyuzu-15c388e0d67678c9d0ab22c5ba7f7fb5b9ceb9f8.tar.gz
yuzu-15c388e0d67678c9d0ab22c5ba7f7fb5b9ceb9f8.tar.xz
yuzu-15c388e0d67678c9d0ab22c5ba7f7fb5b9ceb9f8.zip
Merge pull request #473 from bunnei/get-display-version
am: Stub IApplicationFunctions GetDisplayVersion.
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/am/am.cpp10
-rw-r--r--src/core/hle/service/am/am.h1
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
490 {20, &IApplicationFunctions::EnsureSaveData, "EnsureSaveData"}, 490 {20, &IApplicationFunctions::EnsureSaveData, "EnsureSaveData"},
491 {21, &IApplicationFunctions::GetDesiredLanguage, "GetDesiredLanguage"}, 491 {21, &IApplicationFunctions::GetDesiredLanguage, "GetDesiredLanguage"},
492 {22, &IApplicationFunctions::SetTerminateResult, "SetTerminateResult"}, 492 {22, &IApplicationFunctions::SetTerminateResult, "SetTerminateResult"},
493 {23, nullptr, "GetDisplayVersion"}, 493 {23, &IApplicationFunctions::GetDisplayVersion, "GetDisplayVersion"},
494 {24, nullptr, "GetLaunchStorageInfoForDebug"}, 494 {24, nullptr, "GetLaunchStorageInfoForDebug"},
495 {25, nullptr, "ExtendSaveData"}, 495 {25, nullptr, "ExtendSaveData"},
496 {26, nullptr, "GetSaveDataSize"}, 496 {26, nullptr, "GetSaveDataSize"},
@@ -585,6 +585,14 @@ void IApplicationFunctions::SetTerminateResult(Kernel::HLERequestContext& ctx) {
585 NGLOG_WARNING(Service_AM, "(STUBBED) called, result=0x{:08X}", result); 585 NGLOG_WARNING(Service_AM, "(STUBBED) called, result=0x{:08X}", result);
586} 586}
587 587
588void IApplicationFunctions::GetDisplayVersion(Kernel::HLERequestContext& ctx) {
589 IPC::ResponseBuilder rb{ctx, 6};
590 rb.Push(RESULT_SUCCESS);
591 rb.Push<u64>(1);
592 rb.Push<u64>(0);
593 NGLOG_WARNING(Service_AM, "(STUBBED) called");
594}
595
588void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) { 596void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) {
589 // TODO(bunnei): This should be configurable 597 // TODO(bunnei): This should be configurable
590 IPC::ResponseBuilder rb{ctx, 4}; 598 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:
132 void CreateApplicationAndRequestToStartForQuest(Kernel::HLERequestContext& ctx); 132 void CreateApplicationAndRequestToStartForQuest(Kernel::HLERequestContext& ctx);
133 void EnsureSaveData(Kernel::HLERequestContext& ctx); 133 void EnsureSaveData(Kernel::HLERequestContext& ctx);
134 void SetTerminateResult(Kernel::HLERequestContext& ctx); 134 void SetTerminateResult(Kernel::HLERequestContext& ctx);
135 void GetDisplayVersion(Kernel::HLERequestContext& ctx);
135 void GetDesiredLanguage(Kernel::HLERequestContext& ctx); 136 void GetDesiredLanguage(Kernel::HLERequestContext& ctx);
136 void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx); 137 void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx);
137 void SetGamePlayRecordingState(Kernel::HLERequestContext& ctx); 138 void SetGamePlayRecordingState(Kernel::HLERequestContext& ctx);