Overlays: Add screenshot message to queue

This commit is contained in:
Megamouse 2022-05-24 22:51:30 +02:00
parent 478b6b53a9
commit 345bda69ec
3 changed files with 11 additions and 2 deletions

View file

@ -12,6 +12,7 @@
#include "Emu/Cell/Modules/cellScreenshot.h"
#include "Emu/Cell/Modules/cellVideoOut.h"
#include "Emu/RSX/rsx_utils.h"
#include "Emu/RSX/Overlays/overlay_message.h"
#include <QApplication>
#include <QDateTime>
@ -770,6 +771,10 @@ void gs_frame::take_screenshot(std::vector<u8> data, const u32 sshot_width, cons
}
});
ensure(filename.find(fs::get_config_dir()) != filename.npos);
const std::string shortpath = filename.substr(fs::get_config_dir().size() - 1); // -1 for /
rsx::overlays::queue_message(tr("Screenshot saved: %0").arg(QString::fromStdString(shortpath)).toStdString());
return;
},
std::move(data))