Updated comments regarding requirements for using video-recording, etc. Changed appletInitializeGamePlayRecording to (void) since the sysmodule only supports a fixed size.

This commit is contained in:
yellows8 2018-10-22 13:37:25 -04:00
parent 0fb0f67d2e
commit a15c9945a7
2 changed files with 5 additions and 5 deletions

View File

@ -63,11 +63,11 @@ Result appletIsGamePlayRecordingSupported(bool *flag);
/// See also \ref appletInitializeGamePlayRecording. /// See also \ref appletInitializeGamePlayRecording.
Result appletSetGamePlayRecordingState(bool state); Result appletSetGamePlayRecordingState(bool state);
/// This is currently not usable. /// Initializes video recording. This allocates a 0x6000000-byte buffer for the TransferMemory, cleanup is handled automatically during app exit in \ref appletExit.
/// Initializes video recording. When size is 0, the default size of 0x6000000 is used.
/// Only available with AppletType_*Application on 3.0.0+, hence errors from this can be ignored. /// Only available with AppletType_*Application on 3.0.0+, hence errors from this can be ignored.
/// Video recording is only fully available system-side with 4.0.0+. /// Video recording is only fully available system-side with 4.0.0+.
Result appletInitializeGamePlayRecording(size_t size); /// Only usable when running under a title which supports video recording.
Result appletInitializeGamePlayRecording(void);
/** /**
* @brief Blocks the usage of the home button. * @brief Blocks the usage of the home button.

View File

@ -852,8 +852,9 @@ Result appletSetGamePlayRecordingState(bool state) {
return rc; return rc;
} }
Result appletInitializeGamePlayRecording(size_t size) { Result appletInitializeGamePlayRecording(void) {
Result rc=0; Result rc=0;
size_t size = 0x6000000;
g_appletRecordingInitialized = 0; g_appletRecordingInitialized = 0;
@ -863,7 +864,6 @@ Result appletInitializeGamePlayRecording(size_t size) {
if (!kernelAbove300()) if (!kernelAbove300())
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
if (size==0) size = 0x6000000;
rc = tmemCreate(&g_appletRecordingTmem, size, Perm_None); rc = tmemCreate(&g_appletRecordingTmem, size, Perm_None);
if (R_FAILED(rc)) return rc; if (R_FAILED(rc)) return rc;