mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
Add ROM Header struct and ROM info dialog (#1095)
This commit is contained in:
@ -57,6 +57,7 @@
|
||||
#include "AudioSettingsDialog.h"
|
||||
#include "WifiSettingsDialog.h"
|
||||
#include "InterfaceSettingsDialog.h"
|
||||
#include "ROMInfoDialog.h"
|
||||
|
||||
#include "types.h"
|
||||
#include "version.h"
|
||||
@ -65,6 +66,7 @@
|
||||
#include "OSD.h"
|
||||
|
||||
#include "NDS.h"
|
||||
#include "NDSCart.h"
|
||||
#include "GBACart.h"
|
||||
#include "GPU.h"
|
||||
#include "SPU.h"
|
||||
@ -1331,6 +1333,10 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
|
||||
actSetupCheats = menu->addAction("Setup cheat codes");
|
||||
actSetupCheats->setMenuRole(QAction::NoRole);
|
||||
connect(actSetupCheats, &QAction::triggered, this, &MainWindow::onSetupCheats);
|
||||
|
||||
menu->addSeparator();
|
||||
actROMInfo = menu->addAction("ROM Info");
|
||||
connect(actROMInfo, &QAction::triggered, this, &MainWindow::onROMInfo);
|
||||
}
|
||||
{
|
||||
QMenu* menu = menubar->addMenu("Config");
|
||||
@ -1533,9 +1539,10 @@ MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent)
|
||||
|
||||
actSetupCheats->setEnabled(false);
|
||||
|
||||
|
||||
actEnableCheats->setChecked(Config::EnableCheats != 0);
|
||||
|
||||
actROMInfo->setEnabled(false);
|
||||
|
||||
actSavestateSRAMReloc->setChecked(Config::SavestateRelocSRAM != 0);
|
||||
|
||||
actScreenRotation[Config::ScreenRotation]->setChecked(true);
|
||||
@ -2335,6 +2342,10 @@ void MainWindow::onCheatsDialogFinished(int res)
|
||||
emuThread->emuUnpause();
|
||||
}
|
||||
|
||||
void MainWindow::onROMInfo()
|
||||
{
|
||||
ROMInfoDialog* dlg = ROMInfoDialog::openDlg(this);
|
||||
}
|
||||
|
||||
void MainWindow::onOpenEmuSettings()
|
||||
{
|
||||
@ -2589,6 +2600,8 @@ void MainWindow::onEmuStart()
|
||||
actImportSavefile->setEnabled(true);
|
||||
|
||||
actSetupCheats->setEnabled(true);
|
||||
|
||||
actROMInfo->setEnabled(true);
|
||||
}
|
||||
|
||||
void MainWindow::onEmuStop()
|
||||
@ -2609,6 +2622,8 @@ void MainWindow::onEmuStop()
|
||||
actFrameStep->setEnabled(false);
|
||||
|
||||
actSetupCheats->setEnabled(false);
|
||||
|
||||
actROMInfo->setEnabled(false);
|
||||
}
|
||||
|
||||
void MainWindow::onUpdateVideoSettings(bool glchange)
|
||||
|
Reference in New Issue
Block a user