mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-23 20:22:40 +00:00
Create function header
This commit is contained in:
@@ -33,6 +33,7 @@ libpspdebug_a_SOURCES = \
|
|||||||
kprintf.c \
|
kprintf.c \
|
||||||
stacktrace.c \
|
stacktrace.c \
|
||||||
profiler.c \
|
profiler.c \
|
||||||
|
screenshot.c \
|
||||||
stdio.c \
|
stdio.c \
|
||||||
sio.c
|
sio.c
|
||||||
|
|
||||||
|
|||||||
@@ -433,6 +433,16 @@ void pspDebugSioEnableKprintf(void);
|
|||||||
*/
|
*/
|
||||||
void pspDebugSioDisableKprintf(void);
|
void pspDebugSioDisableKprintf(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Save a screenshot to a file
|
||||||
|
*
|
||||||
|
* @param filename - The filename to save the screenshot for the current frame buffer displayed on the screen.
|
||||||
|
* The filename will be saved with a BMP extension.
|
||||||
|
*
|
||||||
|
* @return 0 on success, -1 on error
|
||||||
|
*/
|
||||||
|
int pspScreenshotSave(const char *filename);
|
||||||
|
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|||||||
17
src/debug/screenshot.c
Normal file
17
src/debug/screenshot.c
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* PSP Software Development Kit - https://github.com/pspdev
|
||||||
|
* -----------------------------------------------------------------------
|
||||||
|
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
|
||||||
|
*
|
||||||
|
* screenshot.c - Simple screen debug keyboard
|
||||||
|
*
|
||||||
|
* Copyright (c) 2025, Francisco Javier Trujillo Mata <fjtrujy@gmail.com>
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "pspdebug.h"
|
||||||
|
|
||||||
|
int pspScreenshotSave(const char *filename)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user