mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-21 16:10:47 +01:00
* Fix screenshot logging * Update libpng to 1.6.37 * cellScreenshot: Write text chunks * cellScreenshot: add overlay image * screenshot_manager: add /dev_hdd0/photo/ * read_png_file: use deleter instead of manual close * cellScreenshot: use Qt for overlays * cellScreenshot: don't apply overlay to regular img * screenshot_manager: add mount hack for VFS * cellScreenshot: escape the whole path
51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include "Emu/Memory/vm_ptr.h"
|
|
|
|
// Return Codes
|
|
enum CellScreenShotError : u32
|
|
{
|
|
CELL_SCREENSHOT_ERROR_INTERNAL = 0x8002d101,
|
|
CELL_SCREENSHOT_ERROR_PARAM = 0x8002d102,
|
|
CELL_SCREENSHOT_ERROR_DECODE = 0x8002d103,
|
|
CELL_SCREENSHOT_ERROR_NOSPACE = 0x8002d104,
|
|
CELL_SCREENSHOT_ERROR_UNSUPPORTED_COLOR_FORMAT = 0x8002d105,
|
|
};
|
|
|
|
enum CellScreenShotParamSize
|
|
{
|
|
CELL_SCREENSHOT_PHOTO_TITLE_MAX_LENGTH = 64,
|
|
CELL_SCREENSHOT_GAME_TITLE_MAX_LENGTH = 64,
|
|
CELL_SCREENSHOT_GAME_COMMENT_MAX_SIZE = 1024,
|
|
};
|
|
|
|
struct CellScreenShotSetParam
|
|
{
|
|
vm::bcptr<char> photo_title;
|
|
vm::bcptr<char> game_title;
|
|
vm::bcptr<char> game_comment;
|
|
vm::bptr<void> reserved;
|
|
};
|
|
|
|
extern shared_mutex screenshot_mtx;
|
|
|
|
struct screenshot_manager
|
|
{
|
|
bool is_enabled{false};
|
|
|
|
std::string photo_title;
|
|
std::string game_title;
|
|
std::string game_comment;
|
|
|
|
s32 overlay_offset_x{0};
|
|
s32 overlay_offset_y{0};
|
|
std::string overlay_dir_name;
|
|
std::string overlay_file_name;
|
|
|
|
std::string get_overlay_path() const;
|
|
std::string get_photo_title() const;
|
|
std::string get_game_title() const;
|
|
std::string get_game_comment() const;
|
|
std::string get_screenshot_path(const std::string& date_path) const;
|
|
};
|