Qt: Add OSD message when block dumps are enabled

This commit is contained in:
Connor McLaughlin 2022-05-24 22:27:17 +10:00 committed by refractionpcsx2
parent 08aad5461e
commit 9481bbd2ef
1 changed files with 7 additions and 0 deletions

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())