mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-04 14:08:37 +00:00
Overlays: Add screenshot message to queue
This commit is contained in:
parent
478b6b53a9
commit
345bda69ec
3 changed files with 11 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue