diff options
| author | 2019-11-14 13:54:29 -0500 | |
|---|---|---|
| committer | 2019-11-14 13:54:29 -0500 | |
| commit | 885d88825ef455648537f5dca745bcc30da135e5 (patch) | |
| tree | ddc10d4247d2a882e0fd84d1ba024d93f5b2d29c | |
| parent | Merge pull request #3093 from lioncash/mbedtls (diff) | |
| parent | Implement stub for QueryApplicationPlayStatisticsByUid (diff) | |
| download | yuzu-885d88825ef455648537f5dca745bcc30da135e5.tar.gz yuzu-885d88825ef455648537f5dca745bcc30da135e5.tar.xz yuzu-885d88825ef455648537f5dca745bcc30da135e5.zip | |
Merge pull request #3089 from SciresM/play_statistics
Implement stub for IApplicationFunctions::QueryApplicationPlayStatisticsByUid
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 9 | ||||
| -rw-r--r-- | src/core/hle/service/am/am.h | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index ba54b3040..d52ec4387 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -1077,6 +1077,7 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_) | |||
| 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, nullptr, "QueryApplicationPlayStatistics"}, |
| 1080 | {111, &IApplicationFunctions::QueryApplicationPlayStatisticsByUid, "QueryApplicationPlayStatisticsByUid"}, | ||
| 1080 | {120, nullptr, "ExecuteProgram"}, | 1081 | {120, nullptr, "ExecuteProgram"}, |
| 1081 | {121, nullptr, "ClearUserChannel"}, | 1082 | {121, nullptr, "ClearUserChannel"}, |
| 1082 | {122, nullptr, "UnpopToUserChannel"}, | 1083 | {122, nullptr, "UnpopToUserChannel"}, |
| @@ -1384,6 +1385,14 @@ void IApplicationFunctions::GetGpuErrorDetectedSystemEvent(Kernel::HLERequestCon | |||
| 1384 | rb.PushCopyObjects(gpu_error_detected_event.readable); | 1385 | rb.PushCopyObjects(gpu_error_detected_event.readable); |
| 1385 | } | 1386 | } |
| 1386 | 1387 | ||
| 1388 | void IApplicationFunctions::QueryApplicationPlayStatisticsByUid(Kernel::HLERequestContext& ctx) { | ||
| 1389 | LOG_WARNING(Service_AM, "(STUBBED) called"); | ||
| 1390 | |||
| 1391 | IPC::ResponseBuilder rb{ctx, 3}; | ||
| 1392 | rb.Push(RESULT_SUCCESS); | ||
| 1393 | rb.Push<u32>(0); | ||
| 1394 | } | ||
| 1395 | |||
| 1387 | void InstallInterfaces(SM::ServiceManager& service_manager, | 1396 | void InstallInterfaces(SM::ServiceManager& service_manager, |
| 1388 | std::shared_ptr<NVFlinger::NVFlinger> nvflinger, Core::System& system) { | 1397 | std::shared_ptr<NVFlinger::NVFlinger> nvflinger, Core::System& system) { |
| 1389 | auto message_queue = std::make_shared<AppletMessageQueue>(system.Kernel()); | 1398 | 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 2ae9402a8..f64013ea0 100644 --- a/src/core/hle/service/am/am.h +++ b/src/core/hle/service/am/am.h | |||
| @@ -256,6 +256,7 @@ private: | |||
| 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 GetGpuErrorDetectedSystemEvent(Kernel::HLERequestContext& ctx); |
| 259 | void QueryApplicationPlayStatisticsByUid(Kernel::HLERequestContext& ctx); | ||
| 259 | 260 | ||
| 260 | bool launch_popped_application_specific = false; | 261 | bool launch_popped_application_specific = false; |
| 261 | bool launch_popped_account_preselect = false; | 262 | bool launch_popped_account_preselect = false; |