mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2025-12-06 04:04:53 +01:00
Add steam screenshot api.
This commit is contained in:
parent
ef35271a38
commit
c8e9a162ea
5 changed files with 177 additions and 6 deletions
|
|
@ -17,10 +17,25 @@
|
|||
|
||||
#include "base.h"
|
||||
|
||||
struct screenshot_infos_t
|
||||
{
|
||||
std::string screenshot_name;
|
||||
nlohmann::json metadatas;
|
||||
};
|
||||
|
||||
class Steam_Screenshots : public ISteamScreenshots
|
||||
{
|
||||
bool hooked = false;
|
||||
std::map<ScreenshotHandle, screenshot_infos_t> _screenshots;
|
||||
|
||||
class Local_Storage* local_storage;
|
||||
class SteamCallBacks* callbacks;
|
||||
|
||||
ScreenshotHandle create_screenshot_handle();
|
||||
|
||||
public:
|
||||
Steam_Screenshots(class Local_Storage* local_storage, class SteamCallBacks* callbacks);
|
||||
|
||||
// Writes a screenshot to the user's screenshot library given the raw image data, which must be in RGB format.
|
||||
// The return value is a handle that is valid for the duration of the game process and can be used to apply tags.
|
||||
ScreenshotHandle WriteScreenshot( void *pubRGB, uint32 cubRGB, int nWidth, int nHeight );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue