diff options
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 16 | ||||
| -rw-r--r-- | src/core/hle/service/am/am.h | 3 |
2 files changed, 14 insertions, 5 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index a5702e1ab..96ec41010 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -1076,7 +1076,7 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_) | |||
| 1076 | {100, &IApplicationFunctions::InitializeApplicationCopyrightFrameBuffer, "InitializeApplicationCopyrightFrameBuffer"}, | 1076 | {100, &IApplicationFunctions::InitializeApplicationCopyrightFrameBuffer, "InitializeApplicationCopyrightFrameBuffer"}, |
| 1077 | {101, &IApplicationFunctions::SetApplicationCopyrightImage, "SetApplicationCopyrightImage"}, | 1077 | {101, &IApplicationFunctions::SetApplicationCopyrightImage, "SetApplicationCopyrightImage"}, |
| 1078 | {102, &IApplicationFunctions::SetApplicationCopyrightVisibility, "SetApplicationCopyrightVisibility"}, | 1078 | {102, &IApplicationFunctions::SetApplicationCopyrightVisibility, "SetApplicationCopyrightVisibility"}, |
| 1079 | {110, nullptr, "QueryApplicationPlayStatistics"}, | 1079 | {110, &IApplicationFunctions::QueryApplicationPlayStatistics, "QueryApplicationPlayStatistics"}, |
| 1080 | {111, &IApplicationFunctions::QueryApplicationPlayStatisticsByUid, "QueryApplicationPlayStatisticsByUid"}, | 1080 | {111, &IApplicationFunctions::QueryApplicationPlayStatisticsByUid, "QueryApplicationPlayStatisticsByUid"}, |
| 1081 | {120, nullptr, "ExecuteProgram"}, | 1081 | {120, nullptr, "ExecuteProgram"}, |
| 1082 | {121, nullptr, "ClearUserChannel"}, | 1082 | {121, nullptr, "ClearUserChannel"}, |
| @@ -1377,12 +1377,12 @@ void IApplicationFunctions::GetSaveDataSize(Kernel::HLERequestContext& ctx) { | |||
| 1377 | rb.Push(size.journal); | 1377 | rb.Push(size.journal); |
| 1378 | } | 1378 | } |
| 1379 | 1379 | ||
| 1380 | void IApplicationFunctions::GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx) { | 1380 | void IApplicationFunctions::QueryApplicationPlayStatistics(Kernel::HLERequestContext& ctx) { |
| 1381 | LOG_WARNING(Service_AM, "(STUBBED) called"); | 1381 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 1382 | 1382 | ||
| 1383 | IPC::ResponseBuilder rb{ctx, 2, 1}; | 1383 | IPC::ResponseBuilder rb{ctx, 3}; |
| 1384 | rb.Push(RESULT_SUCCESS); | 1384 | rb.Push(RESULT_SUCCESS); |
| 1385 | rb.PushCopyObjects(gpu_error_detected_event.readable); | 1385 | rb.Push<u32>(0); |
| 1386 | } | 1386 | } |
| 1387 | 1387 | ||
| 1388 | void IApplicationFunctions::QueryApplicationPlayStatisticsByUid(Kernel::HLERequestContext& ctx) { | 1388 | void IApplicationFunctions::QueryApplicationPlayStatisticsByUid(Kernel::HLERequestContext& ctx) { |
| @@ -1393,6 +1393,14 @@ void IApplicationFunctions::QueryApplicationPlayStatisticsByUid(Kernel::HLEReque | |||
| 1393 | rb.Push<u32>(0); | 1393 | rb.Push<u32>(0); |
| 1394 | } | 1394 | } |
| 1395 | 1395 | ||
| 1396 | void IApplicationFunctions::GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx) { | ||
| 1397 | LOG_WARNING(Service_AM, "(STUBBED) called"); | ||
| 1398 | |||
| 1399 | IPC::ResponseBuilder rb{ctx, 2, 1}; | ||
| 1400 | rb.Push(RESULT_SUCCESS); | ||
| 1401 | rb.PushCopyObjects(gpu_error_detected_event.readable); | ||
| 1402 | } | ||
| 1403 | |||
| 1396 | void InstallInterfaces(SM::ServiceManager& service_manager, | 1404 | void InstallInterfaces(SM::ServiceManager& service_manager, |
| 1397 | std::shared_ptr<NVFlinger::NVFlinger> nvflinger, Core::System& system) { | 1405 | std::shared_ptr<NVFlinger::NVFlinger> nvflinger, Core::System& system) { |
| 1398 | auto message_queue = std::make_shared<AppletMessageQueue>(system.Kernel()); | 1406 | auto message_queue = std::make_shared<AppletMessageQueue>(system.Kernel()); |
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h index f64013ea0..06a65b5ed 100644 --- a/src/core/hle/service/am/am.h +++ b/src/core/hle/service/am/am.h | |||
| @@ -255,8 +255,9 @@ private: | |||
| 255 | void InitializeApplicationCopyrightFrameBuffer(Kernel::HLERequestContext& ctx); | 255 | void InitializeApplicationCopyrightFrameBuffer(Kernel::HLERequestContext& ctx); |
| 256 | void SetApplicationCopyrightImage(Kernel::HLERequestContext& ctx); | 256 | void SetApplicationCopyrightImage(Kernel::HLERequestContext& ctx); |
| 257 | void SetApplicationCopyrightVisibility(Kernel::HLERequestContext& ctx); | 257 | void SetApplicationCopyrightVisibility(Kernel::HLERequestContext& ctx); |
| 258 | void GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx); | 258 | void QueryApplicationPlayStatistics(Kernel::HLERequestContext& ctx); |
| 259 | void QueryApplicationPlayStatisticsByUid(Kernel::HLERequestContext& ctx); | 259 | void QueryApplicationPlayStatisticsByUid(Kernel::HLERequestContext& ctx); |
| 260 | void GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx); | ||
| 260 | 261 | ||
| 261 | bool launch_popped_application_specific = false; | 262 | bool launch_popped_application_specific = false; |
| 262 | bool launch_popped_account_preselect = false; | 263 | bool launch_popped_account_preselect = false; |