mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-02 18:21:19 +00:00
Preparing the creation of a Ram Viewer
This commit is contained in:
@@ -43,6 +43,10 @@ namespace ComSquare::Renderer
|
||||
cpuDebugger->setShortcut(Qt::Key_F1);
|
||||
QMainWindow::connect(cpuDebugger, &QAction::triggered, this->_sfWidget.get(), &QtFullSFML::enableDebugCPU);
|
||||
debugger->addAction(cpuDebugger);
|
||||
QAction *ramViewer = new QAction("Ram viewer", &this->_window);
|
||||
ramViewer->setShortcut(Qt::Key_F2);
|
||||
QMainWindow::connect(ramViewer, &QAction::triggered, this->_sfWidget.get(), &QtFullSFML::enableRamViewer);
|
||||
debugger->addAction(ramViewer);
|
||||
|
||||
this->_window.show();
|
||||
}
|
||||
@@ -78,4 +82,9 @@ namespace ComSquare::Renderer
|
||||
{
|
||||
this->_snes.cpu->RESB();
|
||||
}
|
||||
|
||||
void QtFullSFML::enableRamViewer()
|
||||
{
|
||||
this->_snes.enableRamViewer();
|
||||
}
|
||||
}
|
||||
@@ -23,8 +23,10 @@ namespace ComSquare::Renderer
|
||||
SNES &_snes;
|
||||
void _onUpdate() override;
|
||||
public:
|
||||
//! @brief Action called when clicking on the enable CPU button.
|
||||
//! @brief Action called when clicking on the enable CPU debugger button.
|
||||
void enableDebugCPU();
|
||||
//! @brief Action called when clicking on the enable Ram viewer button.
|
||||
void enableRamViewer();
|
||||
//! @brief Action called when clicking on the reset button.
|
||||
void reset();
|
||||
QtFullSFML(SNES &snes, QWidget* parent, const QPoint& position, const QSize& size, int frameRate = 0);
|
||||
|
||||
Reference in New Issue
Block a user