mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 00:59:41 +01:00
Merge pull request #12828 from TotalCaesar659/menu-record
Add "Record" menu group to Linux version
This commit is contained in:
2 files changed
+35
-1
No files matched your search
+31
-1
@@ -253,6 +253,26 @@ void MainWindow::sstateAct()
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::recordDisplayAct()
|
||||
{
|
||||
g_Config.bDumpFrames = !g_Config.bDumpFrames;
|
||||
}
|
||||
|
||||
void MainWindow::useLosslessVideoCodecAct()
|
||||
{
|
||||
g_Config.bUseFFV1 = !g_Config.bUseFFV1;
|
||||
}
|
||||
|
||||
void MainWindow::useOutputBufferAct()
|
||||
{
|
||||
g_Config.bDumpVideoOutput = !g_Config.bDumpVideoOutput;
|
||||
}
|
||||
|
||||
void MainWindow::recordAudioAct()
|
||||
{
|
||||
g_Config.bDumpAudio = !g_Config.bDumpAudio;
|
||||
}
|
||||
|
||||
void MainWindow::exitAct()
|
||||
{
|
||||
closeAct();
|
||||
@@ -527,7 +547,7 @@ void MainWindow::createMenus()
|
||||
fileMenu->add(new MenuAction(this, SLOT(closeAct()), QT_TR_NOOP("&Close"), QKeySequence::Close))
|
||||
->addDisableState(UISTATE_MENU);
|
||||
fileMenu->addSeparator();
|
||||
fileMenu->add(new MenuAction(this, SLOT(openmsAct()), QT_TR_NOOP("Open &Memory stick")))
|
||||
fileMenu->add(new MenuAction(this, SLOT(openmsAct()), QT_TR_NOOP("Open &Memory Stick")))
|
||||
->addEnableState(UISTATE_MENU);
|
||||
fileMenu->addSeparator();
|
||||
MenuTree* savestateMenu = new MenuTree(this, fileMenu, QT_TR_NOOP("Saves&tate slot"));
|
||||
@@ -542,6 +562,16 @@ void MainWindow::createMenus()
|
||||
->addDisableState(UISTATE_MENU);
|
||||
fileMenu->add(new MenuAction(this, SLOT(sstateAct()), QT_TR_NOOP("&Save state file...")))
|
||||
->addDisableState(UISTATE_MENU);
|
||||
MenuTree* recordMenu = new MenuTree(this, fileMenu, QT_TR_NOOP("&Record"));
|
||||
recordMenu->add(new MenuAction(this, SLOT(recordDisplayAct()), QT_TR_NOOP("Record &display")))
|
||||
->addEventChecked(&g_Config.bDumpFrames);
|
||||
recordMenu->add(new MenuAction(this, SLOT(useLosslessVideoCodecAct()), QT_TR_NOOP("&Use lossless video codec (FFV1)")))
|
||||
->addEventChecked(&g_Config.bUseFFV1);
|
||||
recordMenu->add(new MenuAction(this, SLOT(useOutputBufferAct()), QT_TR_NOOP("Use output buffer for video")))
|
||||
->addEventChecked(&g_Config.bDumpVideoOutput);
|
||||
recordMenu->addSeparator();
|
||||
recordMenu->add(new MenuAction(this, SLOT(recordAudioAct()), QT_TR_NOOP("Record &audio")))
|
||||
->addEventChecked(&g_Config.bDumpAudio);
|
||||
fileMenu->addSeparator();
|
||||
fileMenu->add(new MenuAction(this, SLOT(exitAct()), QT_TR_NOOP("E&xit"), QKeySequence::Quit));
|
||||
|
||||
|
||||
@@ -82,6 +82,10 @@ private slots:
|
||||
void qsstateAct();
|
||||
void lstateAct();
|
||||
void sstateAct();
|
||||
void recordDisplayAct();
|
||||
void useLosslessVideoCodecAct();
|
||||
void useOutputBufferAct();
|
||||
void recordAudioAct();
|
||||
void exitAct();
|
||||
|
||||
// Emulation
|
||||
|
||||
Reference in new issue
Block a user