2019-09-29 03:01:34 +02:00
|
|
|
|
#pragma once
|
2015-06-19 17:49:38 +02:00
|
|
|
|
|
2020-02-15 23:36:20 +01:00
|
|
|
|
#include "Emu/VFS.h"
|
2018-09-26 00:14:10 +02:00
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
|
// Return Codes
|
2019-09-29 03:01:34 +02:00
|
|
|
|
enum CellScreenShotError : u32
|
2015-02-22 09:50:26 +01:00
|
|
|
|
{
|
2019-09-29 03:01:34 +02:00
|
|
|
|
CELL_SCREENSHOT_ERROR_INTERNAL = 0x8002d101,
|
|
|
|
|
|
CELL_SCREENSHOT_ERROR_PARAM = 0x8002d102,
|
|
|
|
|
|
CELL_SCREENSHOT_ERROR_DECODE = 0x8002d103,
|
|
|
|
|
|
CELL_SCREENSHOT_ERROR_NOSPACE = 0x8002d104,
|
2015-02-22 09:50:26 +01:00
|
|
|
|
CELL_SCREENSHOT_ERROR_UNSUPPORTED_COLOR_FORMAT = 0x8002d105,
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2019-09-29 03:01:34 +02:00
|
|
|
|
enum CellScreenShotParamSize
|
|
|
|
|
|
{
|
|
|
|
|
|
CELL_SCREENSHOT_PHOTO_TITLE_MAX_LENGTH = 64,
|
|
|
|
|
|
CELL_SCREENSHOT_GAME_TITLE_MAX_LENGTH = 64,
|
|
|
|
|
|
CELL_SCREENSHOT_GAME_COMMENT_MAX_SIZE = 1024,
|
|
|
|
|
|
};
|
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
|
struct CellScreenShotSetParam
|
|
|
|
|
|
{
|
2018-02-09 15:49:37 +01:00
|
|
|
|
vm::bcptr<char> photo_title;
|
|
|
|
|
|
vm::bcptr<char> game_title;
|
|
|
|
|
|
vm::bcptr<char> game_comment;
|
2019-09-29 03:01:34 +02:00
|
|
|
|
vm::bptr<void> reserved;
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct screenshot_manager
|
|
|
|
|
|
{
|
|
|
|
|
|
atomic_t<bool> is_enabled{ false };
|
|
|
|
|
|
|
|
|
|
|
|
std::string photo_title;
|
|
|
|
|
|
std::string game_title;
|
|
|
|
|
|
std::string game_comment;
|
|
|
|
|
|
|
|
|
|
|
|
atomic_t<s32> overlay_offset_x{ 0 };
|
|
|
|
|
|
atomic_t<s32> overlay_offset_y{ 0 };
|
|
|
|
|
|
std::string overlay_dir_name;
|
|
|
|
|
|
std::string overlay_file_name;
|
|
|
|
|
|
|
2020-02-15 23:36:20 +01:00
|
|
|
|
std::string get_overlay_path() const;
|
|
|
|
|
|
std::string get_photo_title() const;
|
|
|
|
|
|
std::string get_game_title() const;
|
|
|
|
|
|
std::string get_screenshot_path() const;
|
2015-06-19 17:49:38 +02:00
|
|
|
|
};
|