Screenshot functionality Added

Added a screenshot functionality based on this pr https://github.com/xenia-project/xenia/pull/2074 and added some minor adjustments.

GUI wise, "take screenshot" is under the Display menu and the keyboard shortcut to take it is F10

The screenshots folder will save to where xenia.exe or xenia_canary.exe is located. As for save paths, it will only use the id of the game due to illegal characters in some titles.
This commit is contained in:
Vonce
2024-06-17 00:18:22 -07:00
committed by Radosław Gliński
parent 34322ebb41
commit e4408b6bc3
2 changed files with 79 additions and 0 deletions

View File

@@ -87,6 +87,11 @@ class EmulatorWindow {
void ToggleFullscreen();
void SetInitializingShaderStorage(bool initializing);
void TakeScreenshot();
void ExportScreenshot(const xe::ui::RawImage& image);
void SaveImage(const std::filesystem::path& path,
const xe::ui::RawImage& image);
// Types of button functions for hotkeys.
enum class ButtonFunctions {
ToggleFullscreen,