Added appletRequestFlushGamePlayingMovieForDebug.

This commit is contained in:
yellows8 2019-08-22 10:27:49 -04:00
parent c7cab0351c
commit 7c18df6d4c
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 15 additions and 0 deletions

View File

@ -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. /// 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); 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. * @brief Requests a system shutdown. This will enter an infinite-sleep-loop on success.
* @note Only available with AppletType_*Application on 3.0.0+. * @note Only available with AppletType_*Application on 3.0.0+.

View File

@ -4022,6 +4022,15 @@ Result appletInitializeGamePlayRecording(void) {
return rc; 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 appletRequestToShutdown(void) {
Result rc=0; Result rc=0;