Qt: Add OSD message when block dumps are enabled

This commit is contained in:
Connor McLaughlin authored and refractionpcsx2 committed 2022-05-25 10:15:48 +01:00
1 parent 08aad5461e
commit 9481bbd2ef
1 file changed
+7
+7
View File
@@ -23,6 +23,8 @@
#include <exception>
#include <memory>
#include "fmt/core.h"
#include "IsoFS/IsoFS.h"
#include "IsoFS/IsoFSCDVD.h"
#include "IsoFileFormats.h"
@@ -34,6 +36,7 @@
#include "common/StringUtil.h"
#include "DebugTools/SymbolMap.h"
#include "Config.h"
#include "Host.h"
CDVD_API* CDVD = NULL;
@@ -409,6 +412,10 @@ bool DoCDVDopen()
cdvdTD td;
CDVD->getTD(0, &td);
#ifdef PCSX2_CORE
Host::AddKeyedOSDMessage("BlockDumpCreate", fmt::format("Saving CDVD block dump to '{}'.", temp), 10.0f);
#endif
blockDumpFile.Create(std::move(temp), 2);
if (blockDumpFile.IsOpened())