mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
fix PR
This commit is contained in:
parent
4244c6e523
commit
cb0a487d3d
@ -50,7 +50,7 @@ Result capsscOpenRawScreenShotReadStream(u64 *out_size, u64 *out_width, u64 *out
|
|||||||
* @brief Discards a stream opened by \ref capsscOpenRawScreenShotReadStream.
|
* @brief Discards a stream opened by \ref capsscOpenRawScreenShotReadStream.
|
||||||
* @note Only available on [3.0.0+]. Requires debug mode.
|
* @note Only available on [3.0.0+]. Requires debug mode.
|
||||||
*/
|
*/
|
||||||
Result capsscCloseRawScreenShotReadStream();
|
Result capsscCloseRawScreenShotReadStream(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Reads from a stream opened by \ref capsscOpenRawScreenShotReadStream.
|
* @brief Reads from a stream opened by \ref capsscOpenRawScreenShotReadStream.
|
||||||
@ -60,7 +60,7 @@ Result capsscCloseRawScreenShotReadStream();
|
|||||||
* @param size Size of buf.
|
* @param size Size of buf.
|
||||||
* @param offset Offset in image where read should start.
|
* @param offset Offset in image where read should start.
|
||||||
*/
|
*/
|
||||||
Result capsscReadRawScreenShotReadStream(u64 *bytes_read, void *buf, size_t size, u64 offset);
|
Result capsscReadRawScreenShotReadStream(u64 *bytes_read, void* buf, size_t size, u64 offset);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This takes a screenshot, with the screenshot being written as jpeg into the output buffer.
|
* @brief This takes a screenshot, with the screenshot being written as jpeg into the output buffer.
|
||||||
|
@ -48,9 +48,9 @@ Result capsscOpenRawScreenShotReadStream(u64 *out_size, u64 *out_width, u64 *out
|
|||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
const struct {
|
const struct {
|
||||||
ViLayerStack layer_stack;
|
s32 layer_stack;
|
||||||
u64 timeout;
|
u32 pad;
|
||||||
} in = {layer_stack, timeout};
|
} in = {layer_stack, 0, timeout};
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
u64 size;
|
u64 size;
|
||||||
@ -68,7 +68,7 @@ Result capsscOpenRawScreenShotReadStream(u64 *out_size, u64 *out_width, u64 *out
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result capsscCloseRawScreenShotReadStream() {
|
Result capsscCloseRawScreenShotReadStream(void) {
|
||||||
if (hosversionBefore(3,0,0))
|
if (hosversionBefore(3,0,0))
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user