2017-04-09 06:48:27 +01:00
|
|
|
#pragma once
|
2019-08-16 08:27:30 -04:00
|
|
|
|
2017-04-09 06:48:27 +01:00
|
|
|
#include "PS2VM.h"
|
2019-08-16 08:27:30 -04:00
|
|
|
#include "gs/GSHandler.h"
|
2017-04-09 06:48:27 +01:00
|
|
|
|
2019-08-16 08:27:30 -04:00
|
|
|
class CScreenShotUtils
|
2017-04-09 06:48:27 +01:00
|
|
|
{
|
|
|
|
public:
|
2018-04-30 21:01:23 +01:00
|
|
|
typedef std::function<void(int, const char*)> Callback;
|
2019-08-16 17:11:35 -04:00
|
|
|
typedef CGSHandler::FlipCompleteEvent::Connection Connection;
|
2019-08-19 19:05:35 -04:00
|
|
|
|
2019-08-16 08:27:30 -04:00
|
|
|
static Connection TriggerGetScreenshot(CPS2VM*, Callback);
|
2017-04-09 06:48:27 +01:00
|
|
|
|
|
|
|
private:
|
2019-10-16 20:51:11 -04:00
|
|
|
static fs::path GetScreenShotDirectoryPath();
|
|
|
|
static fs::path GenerateScreenShotPath(const char* gameID);
|
2017-04-09 06:48:27 +01:00
|
|
|
};
|