mirror of https://github.com/PCSX2/pcsx2.git
Qt: Add OSD message when block dumps are enabled
This commit is contained in:
parent
08aad5461e
commit
9481bbd2ef
|
@ -23,6 +23,8 @@
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
#include "fmt/core.h"
|
||||||
|
|
||||||
#include "IsoFS/IsoFS.h"
|
#include "IsoFS/IsoFS.h"
|
||||||
#include "IsoFS/IsoFSCDVD.h"
|
#include "IsoFS/IsoFSCDVD.h"
|
||||||
#include "IsoFileFormats.h"
|
#include "IsoFileFormats.h"
|
||||||
|
@ -34,6 +36,7 @@
|
||||||
#include "common/StringUtil.h"
|
#include "common/StringUtil.h"
|
||||||
#include "DebugTools/SymbolMap.h"
|
#include "DebugTools/SymbolMap.h"
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
|
#include "Host.h"
|
||||||
|
|
||||||
CDVD_API* CDVD = NULL;
|
CDVD_API* CDVD = NULL;
|
||||||
|
|
||||||
|
@ -409,6 +412,10 @@ bool DoCDVDopen()
|
||||||
cdvdTD td;
|
cdvdTD td;
|
||||||
CDVD->getTD(0, &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);
|
blockDumpFile.Create(std::move(temp), 2);
|
||||||
|
|
||||||
if (blockDumpFile.IsOpened())
|
if (blockDumpFile.IsOpened())
|
||||||
|
|
Loading…
Reference in New Issue