summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Morph2021-01-31 03:11:03 -0500
committerGravatar Morph2021-01-31 03:11:03 -0500
commit9f6b35e61f7d00584ff0cb08f044625205a55c6a (patch)
tree48cb27ef51ebfc7da01b83deb0e18afc3d44a25a /src
parentMerge pull request #5855 from Morph1984/bsd-fix-getsockopt-stub (diff)
downloadyuzu-9f6b35e61f7d00584ff0cb08f044625205a55c6a.tar.gz
yuzu-9f6b35e61f7d00584ff0cb08f044625205a55c6a.tar.xz
yuzu-9f6b35e61f7d00584ff0cb08f044625205a55c6a.zip
am/IApplicationFunctions: Stub IsGamePlayRecordingSupported
Used by RetroArch
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/am/am.cpp12
-rw-r--r--src/core/hle/service/am/am.h1
2 files changed, 12 insertions, 1 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp
index 52b034fae..d42236a3a 100644
--- a/src/core/hle/service/am/am.cpp
+++ b/src/core/hle/service/am/am.cpp
@@ -1192,7 +1192,7 @@ IApplicationFunctions::IApplicationFunctions(Core::System& system_)
1192 {40, &IApplicationFunctions::NotifyRunning, "NotifyRunning"}, 1192 {40, &IApplicationFunctions::NotifyRunning, "NotifyRunning"},
1193 {50, &IApplicationFunctions::GetPseudoDeviceId, "GetPseudoDeviceId"}, 1193 {50, &IApplicationFunctions::GetPseudoDeviceId, "GetPseudoDeviceId"},
1194 {60, nullptr, "SetMediaPlaybackStateForApplication"}, 1194 {60, nullptr, "SetMediaPlaybackStateForApplication"},
1195 {65, nullptr, "IsGamePlayRecordingSupported"}, 1195 {65, &IApplicationFunctions::IsGamePlayRecordingSupported, "IsGamePlayRecordingSupported"},
1196 {66, &IApplicationFunctions::InitializeGamePlayRecording, "InitializeGamePlayRecording"}, 1196 {66, &IApplicationFunctions::InitializeGamePlayRecording, "InitializeGamePlayRecording"},
1197 {67, &IApplicationFunctions::SetGamePlayRecordingState, "SetGamePlayRecordingState"}, 1197 {67, &IApplicationFunctions::SetGamePlayRecordingState, "SetGamePlayRecordingState"},
1198 {68, nullptr, "RequestFlushGamePlayingMovieForDebug"}, 1198 {68, nullptr, "RequestFlushGamePlayingMovieForDebug"},
@@ -1480,6 +1480,16 @@ void IApplicationFunctions::GetDesiredLanguage(Kernel::HLERequestContext& ctx) {
1480 rb.Push(*res_code); 1480 rb.Push(*res_code);
1481} 1481}
1482 1482
1483void IApplicationFunctions::IsGamePlayRecordingSupported(Kernel::HLERequestContext& ctx) {
1484 LOG_WARNING(Service_AM, "(STUBBED) called");
1485
1486 constexpr bool gameplay_recording_supported = false;
1487
1488 IPC::ResponseBuilder rb{ctx, 3};
1489 rb.Push(RESULT_SUCCESS);
1490 rb.Push(gameplay_recording_supported);
1491}
1492
1483void IApplicationFunctions::InitializeGamePlayRecording(Kernel::HLERequestContext& ctx) { 1493void IApplicationFunctions::InitializeGamePlayRecording(Kernel::HLERequestContext& ctx) {
1484 LOG_WARNING(Service_AM, "(STUBBED) called"); 1494 LOG_WARNING(Service_AM, "(STUBBED) called");
1485 1495
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h
index a5401a4d2..f5db41ac8 100644
--- a/src/core/hle/service/am/am.h
+++ b/src/core/hle/service/am/am.h
@@ -266,6 +266,7 @@ private:
266 void SetTerminateResult(Kernel::HLERequestContext& ctx); 266 void SetTerminateResult(Kernel::HLERequestContext& ctx);
267 void GetDisplayVersion(Kernel::HLERequestContext& ctx); 267 void GetDisplayVersion(Kernel::HLERequestContext& ctx);
268 void GetDesiredLanguage(Kernel::HLERequestContext& ctx); 268 void GetDesiredLanguage(Kernel::HLERequestContext& ctx);
269 void IsGamePlayRecordingSupported(Kernel::HLERequestContext& ctx);
269 void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx); 270 void InitializeGamePlayRecording(Kernel::HLERequestContext& ctx);
270 void SetGamePlayRecordingState(Kernel::HLERequestContext& ctx); 271 void SetGamePlayRecordingState(Kernel::HLERequestContext& ctx);
271 void NotifyRunning(Kernel::HLERequestContext& ctx); 272 void NotifyRunning(Kernel::HLERequestContext& ctx);