summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar bunnei2018-05-26 00:21:03 -0400
committerGravatar bunnei2018-05-26 00:21:59 -0400
commit0d681f7a7a3c05714bad7ec6eda4ae255a508783 (patch)
treed54d13187ffc33274329a27f92821fa7e6fdda16 /src/core
parentAdd & correct miscellaneous things (#470) (diff)
downloadyuzu-0d681f7a7a3c05714bad7ec6eda4ae255a508783.tar.gz
yuzu-0d681f7a7a3c05714bad7ec6eda4ae255a508783.tar.xz
yuzu-0d681f7a7a3c05714bad7ec6eda4ae255a508783.zip
am: Stub IApplicationFunctions GetDisplayVersion.
Diffstat (limited to 'src/core')
-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);