Create function header

This commit is contained in:
Francisco Javier Trujillo Mata
2025-05-12 22:26:28 +02:00
parent 2a6f9b8582
commit fbdb62c71f
3 changed files with 28 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ libpspdebug_a_SOURCES = \
kprintf.c \
stacktrace.c \
profiler.c \
screenshot.c \
stdio.c \
sio.c

View File

@@ -433,6 +433,16 @@ void pspDebugSioEnableKprintf(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

17
src/debug/screenshot.c Normal file
View 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;
}