mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Merge pull request #3059 from FearlessTobi/stub-am-commands
core/am: Stub InitializeApplicationCopyrightFrameBuffer, SetApplicationCopyrightImage and SetApplicationCopyrightVisibility
This commit is contained in:
commit
ae6eb61892
2 changed files with 31 additions and 3 deletions
|
@ -1073,9 +1073,9 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_)
|
||||||
{71, nullptr, "RequestToReboot"},
|
{71, nullptr, "RequestToReboot"},
|
||||||
{80, nullptr, "ExitAndRequestToShowThanksMessage"},
|
{80, nullptr, "ExitAndRequestToShowThanksMessage"},
|
||||||
{90, &IApplicationFunctions::EnableApplicationCrashReport, "EnableApplicationCrashReport"},
|
{90, &IApplicationFunctions::EnableApplicationCrashReport, "EnableApplicationCrashReport"},
|
||||||
{100, nullptr, "InitializeApplicationCopyrightFrameBuffer"},
|
{100, &IApplicationFunctions::InitializeApplicationCopyrightFrameBuffer, "InitializeApplicationCopyrightFrameBuffer"},
|
||||||
{101, nullptr, "SetApplicationCopyrightImage"},
|
{101, &IApplicationFunctions::SetApplicationCopyrightImage, "SetApplicationCopyrightImage"},
|
||||||
{102, nullptr, "SetApplicationCopyrightVisibility"},
|
{102, &IApplicationFunctions::SetApplicationCopyrightVisibility, "SetApplicationCopyrightVisibility"},
|
||||||
{110, nullptr, "QueryApplicationPlayStatistics"},
|
{110, nullptr, "QueryApplicationPlayStatistics"},
|
||||||
{120, nullptr, "ExecuteProgram"},
|
{120, nullptr, "ExecuteProgram"},
|
||||||
{121, nullptr, "ClearUserChannel"},
|
{121, nullptr, "ClearUserChannel"},
|
||||||
|
@ -1103,6 +1103,31 @@ void IApplicationFunctions::EnableApplicationCrashReport(Kernel::HLERequestConte
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void IApplicationFunctions::InitializeApplicationCopyrightFrameBuffer(
|
||||||
|
Kernel::HLERequestContext& ctx) {
|
||||||
|
LOG_WARNING(Service_AM, "(STUBBED) called");
|
||||||
|
|
||||||
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
|
rb.Push(RESULT_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
|
void IApplicationFunctions::SetApplicationCopyrightImage(Kernel::HLERequestContext& ctx) {
|
||||||
|
LOG_WARNING(Service_AM, "(STUBBED) called");
|
||||||
|
|
||||||
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
|
rb.Push(RESULT_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
|
void IApplicationFunctions::SetApplicationCopyrightVisibility(Kernel::HLERequestContext& ctx) {
|
||||||
|
IPC::RequestParser rp{ctx};
|
||||||
|
const auto is_visible = rp.Pop<bool>();
|
||||||
|
|
||||||
|
LOG_WARNING(Service_AM, "(STUBBED) called, is_visible={}", is_visible);
|
||||||
|
|
||||||
|
IPC::ResponseBuilder rb{ctx, 2};
|
||||||
|
rb.Push(RESULT_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
void IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(
|
void IApplicationFunctions::BeginBlockingHomeButtonShortAndLongPressed(
|
||||||
Kernel::HLERequestContext& ctx) {
|
Kernel::HLERequestContext& ctx) {
|
||||||
LOG_WARNING(Service_AM, "(STUBBED) called");
|
LOG_WARNING(Service_AM, "(STUBBED) called");
|
||||||
|
|
|
@ -252,6 +252,9 @@ private:
|
||||||
void BeginBlockingHomeButton(Kernel::HLERequestContext& ctx);
|
void BeginBlockingHomeButton(Kernel::HLERequestContext& ctx);
|
||||||
void EndBlockingHomeButton(Kernel::HLERequestContext& ctx);
|
void EndBlockingHomeButton(Kernel::HLERequestContext& ctx);
|
||||||
void EnableApplicationCrashReport(Kernel::HLERequestContext& ctx);
|
void EnableApplicationCrashReport(Kernel::HLERequestContext& ctx);
|
||||||
|
void InitializeApplicationCopyrightFrameBuffer(Kernel::HLERequestContext& ctx);
|
||||||
|
void SetApplicationCopyrightImage(Kernel::HLERequestContext& ctx);
|
||||||
|
void SetApplicationCopyrightVisibility(Kernel::HLERequestContext& ctx);
|
||||||
void GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx);
|
void GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx);
|
||||||
|
|
||||||
bool launch_popped_application_specific = false;
|
bool launch_popped_application_specific = false;
|
||||||
|
|
Loading…
Reference in a new issue