diff --git a/nx/include/switch/services/applet.h b/nx/include/switch/services/applet.h index aec6a3b5..44c1a57e 100644 --- a/nx/include/switch/services/applet.h +++ b/nx/include/switch/services/applet.h @@ -1284,6 +1284,12 @@ Result appletSetGamePlayRecordingState(bool state); /// Only usable when running under a title which supports video recording. Using this is only needed when the host title control.nacp has VideoCaptureMode set to Enabled, with Automatic appletInitializeGamePlayRecording is not needed. Result appletInitializeGamePlayRecording(void); +/** + * @brief Requests to save the video recording, as if the Capture-button was held. + * @note Only available with AppletType_*Application on [4.0.0+]. + */ +Result appletRequestFlushGamePlayingMovieForDebug(void); + /** * @brief Requests a system shutdown. This will enter an infinite-sleep-loop on success. * @note Only available with AppletType_*Application on 3.0.0+. diff --git a/nx/source/services/applet.c b/nx/source/services/applet.c index 850186c5..8edb545c 100644 --- a/nx/source/services/applet.c +++ b/nx/source/services/applet.c @@ -4022,6 +4022,15 @@ Result appletInitializeGamePlayRecording(void) { return rc; } +Result appletRequestFlushGamePlayingMovieForDebug(void) { + if (!serviceIsActive(&g_appletSrv) || !_appletIsApplication()) + return MAKERESULT(Module_Libnx, LibnxError_NotInitialized); + if (hosversionBefore(4,0,0)) + return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); + + return _appletCmdNoIO(&g_appletIFunctions, 68); +} + Result appletRequestToShutdown(void) { Result rc=0;