summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2019-11-03 05:26:33 -0500
committerGravatar GitHub2019-11-03 05:26:33 -0500
commitae6eb618920c6f4d924673b523b64de19f7feaf7 (patch)
treefc9fd8419b813597dee6725d6098c4e27a53bb76 /src
parentMerge pull request #3060 from FearlessTobi/patch-1 (diff)
parentcore/am: Stub InitializeApplicationCopyrightFrameBuffer, SetApplicationCopyri... (diff)
downloadyuzu-ae6eb618920c6f4d924673b523b64de19f7feaf7.tar.gz
yuzu-ae6eb618920c6f4d924673b523b64de19f7feaf7.tar.xz
yuzu-ae6eb618920c6f4d924673b523b64de19f7feaf7.zip
Merge pull request #3059 from FearlessTobi/stub-am-commands
core/am: Stub InitializeApplicationCopyrightFrameBuffer, SetApplicationCopyrightImage and SetApplicationCopyrightVisibility
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/am/am.cpp31
-rw-r--r--src/core/hle/service/am/am.h3
2 files changed, 31 insertions, 3 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 3a32d5b41..3d8a91d22 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -1073,9 +1073,9 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_)
1073 {71, nullptr, "RequestToReboot"}, 1073 {71, nullptr, "RequestToReboot"},
1074 {80, nullptr, "ExitAndRequestToShowThanksMessage"}, 1074 {80, nullptr, "ExitAndRequestToShowThanksMessage"},
1075 {90, &IApplicationFunctions::EnableApplicationCrashReport, "EnableApplicationCrashReport"}, 1075 {90, &IApplicationFunctions::EnableApplicationCrashReport, "EnableApplicationCrashReport"},
1076 {100, nullptr, "InitializeApplicationCopyrightFrameBuffer"}, 1076 {100, &IApplicationFunctions::InitializeApplicationCopyrightFrameBuffer, "InitializeApplicationCopyrightFrameBuffer"},
1077 {101, nullptr, "SetApplicationCopyrightImage"}, 1077 {101, &IApplicationFunctions::SetApplicationCopyrightImage, "SetApplicationCopyrightImage"},
1078 {102, nullptr, "SetApplicationCopyrightVisibility"}, 1078 {102, &IApplicationFunctions::SetApplicationCopyrightVisibility, "SetApplicationCopyrightVisibility"},
1079 {110, nullptr, "QueryApplicationPlayStatistics"}, 1079 {110, nullptr, "QueryApplicationPlayStatistics"},
1080 {120, nullptr, "ExecuteProgram"}, 1080 {120, nullptr, "ExecuteProgram"},
1081 {121, nullptr, "ClearUserChannel"}, 1081 {121, nullptr, "ClearUserChannel"},
@@ -1103,6 +1103,31 @@ void IApplicationFunctions::EnableApplicationCrashReport(Kernel::HLERequestConte
1103 rb.Push(RESULT_SUCCESS); 1103 rb.Push(RESULT_SUCCESS);
1104} 1104}
1105 1105
1106void IApplicationFunctions::InitializeApplicationCopyrightFrameBuffer(
1107 Kernel::HLERequestContext& ctx) {
1108 LOG_WARNING(Service_AM, "(STUBBED) called");
1109
1110 IPC::ResponseBuilder rb{ctx, 2};
1111 rb.Push(RESULT_SUCCESS);
1112}
1113
1114void IApplicationFunctions::SetApplicationCopyrightImage(Kernel::HLERequestContext& ctx) {
1115 LOG_WARNING(Service_AM, "(STUBBED) called");
1116
1117 IPC::ResponseBuilder rb{ctx, 2};
1118 rb.Push(RESULT_SUCCESS);
1119}
1120
1121void IApplicationFunctions::SetApplicationCopyrightVisibility(Kernel::HLERequestContext& ctx) {
1122 IPC::RequestParser rp{ctx};
1123 const auto is_visible = rp.Pop<bool>();
1124
1125 LOG_WARNING(Service_AM, "(STUBBED) called, is_visible={}", is_visible);
1126
1127 IPC::ResponseBuilder rb{ctx, 2};
1128 rb.Push(RESULT_SUCCESS);
1129}
1130
1106void IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed( 1131void IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(
1107 Kernel::HLERequestContext& ctx) { 1132 Kernel::HLERequestContext& ctx) {
1108 LOG_WARNING(Service_AM, "(STUBBED) called"); 1133 LOG_WARNING(Service_AM, "(STUBBED) called");
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
index ccd053c13..2ae9402a8 100644
--- a/src/core/hle/service/am/am.h
+++ b/src/core/hle/service/am/am.h
@@ -252,6 +252,9 @@ private:
252 void BeginBlockingHomeButton(Kernel::HLERequestContext& ctx); 252 void BeginBlockingHomeButton(Kernel::HLERequestContext& ctx);
253 void EndBlockingHomeButton(Kernel::HLERequestContext& ctx); 253 void EndBlockingHomeButton(Kernel::HLERequestContext& ctx);
254 void EnableApplicationCrashReport(Kernel::HLERequestContext& ctx); 254 void EnableApplicationCrashReport(Kernel::HLERequestContext& ctx);
255 void InitializeApplicationCopyrightFrameBuffer(Kernel::HLERequestContext& ctx);
256 void SetApplicationCopyrightImage(Kernel::HLERequestContext& ctx);
257 void SetApplicationCopyrightVisibility(Kernel::HLERequestContext& ctx);
255 void GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx); 258 void GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx);
256 259
257 bool launch_popped_application_specific = false; 260 bool launch_popped_application_specific = false;