mirror of https://github.com/PCSX2/pcsx2.git
parent
9dd579a6d5
commit
e456fb8f88
|
@ -896,7 +896,8 @@ BEGIN_HOTKEY_LIST(g_host_hotkeys)
|
|||
DEFINE_HOTKEY("Screenshot", "General", "Save Screenshot", [](bool pressed) {
|
||||
if (!pressed)
|
||||
{
|
||||
// TODO
|
||||
Host::AddOSDMessage("Saved Screenshot.", 10.0f);
|
||||
GSmakeSnapshot(EmuFolders::Snapshots.ToString().char_str());
|
||||
}
|
||||
})
|
||||
DEFINE_HOTKEY("ShutdownVM", "System", "Shut Down Virtual Machine", [](bool pressed) {
|
||||
|
|
|
@ -45,6 +45,8 @@
|
|||
#include "Settings/InterfaceSettingsWidget.h"
|
||||
#include "SettingWidgetBinder.h"
|
||||
|
||||
extern u32 GSmakeSnapshot(char* path);
|
||||
|
||||
static constexpr char DISC_IMAGE_FILTER[] =
|
||||
QT_TRANSLATE_NOOP("MainWindow", "All File Types (*.bin *.iso *.cue *.chd *.cso *.gz *.elf *.irx *.m3u *.gs *.gs.xz);;"
|
||||
"Single-Track Raw Images (*.bin *.iso);;"
|
||||
|
@ -148,6 +150,7 @@ void MainWindow::connectSignals()
|
|||
connect(m_ui.actionLoadState, &QAction::triggered, this, [this]() { m_ui.menuLoadState->exec(QCursor::pos()); });
|
||||
connect(m_ui.actionSaveState, &QAction::triggered, this, [this]() { m_ui.menuSaveState->exec(QCursor::pos()); });
|
||||
connect(m_ui.actionExit, &QAction::triggered, this, &MainWindow::close);
|
||||
connect(m_ui.actionScreenshot, &QAction::triggered, this, &MainWindow::onScreenshotActionTriggered);
|
||||
connect(m_ui.menuLoadState, &QMenu::aboutToShow, this, &MainWindow::onLoadStateMenuAboutToShow);
|
||||
connect(m_ui.menuSaveState, &QMenu::aboutToShow, this, &MainWindow::onSaveStateMenuAboutToShow);
|
||||
connect(m_ui.actionSettings, &QAction::triggered, [this]() { doSettings(); });
|
||||
|
@ -509,6 +512,12 @@ void MainWindow::setIconThemeFromSettings()
|
|||
QIcon::setThemeName(icon_theme);
|
||||
}
|
||||
|
||||
void MainWindow::onScreenshotActionTriggered()
|
||||
{
|
||||
Host::AddOSDMessage("Saved Screenshot.", 10.0f);
|
||||
GSmakeSnapshot(EmuFolders::Snapshots.ToString().char_str());
|
||||
}
|
||||
|
||||
void MainWindow::saveStateToConfig()
|
||||
{
|
||||
{
|
||||
|
|
|
@ -133,6 +133,7 @@ private Q_SLOTS:
|
|||
void onThemeChanged();
|
||||
void onThemeChangedFromSettings();
|
||||
void onLoggingOptionChanged();
|
||||
void onScreenshotActionTriggered();
|
||||
|
||||
void onVMStarting();
|
||||
void onVMStarted();
|
||||
|
|
Loading…
Reference in New Issue