From 626bf278876cfb44c1e4d427804235a93b190332 Mon Sep 17 00:00:00 2001 From: Kojin Date: Wed, 23 Sep 2020 17:27:39 -0400 Subject: [PATCH] core: send osd log event when snapshot is taken --- common/include/PS2Edefs.h | 2 +- pcsx2/gui/GlobalCommands.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common/include/PS2Edefs.h b/common/include/PS2Edefs.h index 6e6a78fe37..6070e25da0 100644 --- a/common/include/PS2Edefs.h +++ b/common/include/PS2Edefs.h @@ -270,7 +270,7 @@ typedef void(CALLBACK *_GSsetExclusive)(int isExclusive); typedef std::wstring*(CALLBACK *_GSsetupRecording)(int); typedef void(CALLBACK *_GSreset)(); typedef void(CALLBACK *_GSwriteCSR)(u32 value); -typedef void(CALLBACK *_GSmakeSnapshot)(const char *path); +typedef bool(CALLBACK *_GSmakeSnapshot)(const char *path); typedef void(CALLBACK *_GSmakeSnapshot2)(const char *path, int *, int); // PAD diff --git a/pcsx2/gui/GlobalCommands.cpp b/pcsx2/gui/GlobalCommands.cpp index ce98facc1e..5b44679649 100644 --- a/pcsx2/gui/GlobalCommands.cpp +++ b/pcsx2/gui/GlobalCommands.cpp @@ -384,7 +384,8 @@ namespace Implementations void Sys_TakeSnapshot() { - GSmakeSnapshot(g_Conf->Folders.Snapshots.ToUTF8()); + if (GSmakeSnapshot(g_Conf->Folders.Snapshots.ToUTF8())) + OSDlog(ConsoleColors::Color_Black, true, "Snapshot taken"); } void Sys_RenderToggle()