mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-20 06:05:11 +00:00
Splitting the debug window of the component to allow quick change of a component
This commit is contained in:
@@ -55,6 +55,10 @@ namespace ComSquare::Renderer
|
||||
apuDebugger->setShortcut(Qt::Key_F4);
|
||||
QMainWindow::connect(apuDebugger, &QAction::triggered, this->_sfWidget.get(), &QtFullSFML::enableDebugAPU);
|
||||
debugger->addAction(apuDebugger);
|
||||
QAction *busDebugger = new QAction("Memory bus Viewer", &this->_window);
|
||||
busDebugger->setShortcut(Qt::Key_F5);
|
||||
QMainWindow::connect(busDebugger, &QAction::triggered, this->_sfWidget.get(), &QtFullSFML::enableDebugBus);
|
||||
debugger->addAction(busDebugger);
|
||||
|
||||
this->_window.show();
|
||||
}
|
||||
@@ -110,4 +114,9 @@ namespace ComSquare::Renderer
|
||||
{
|
||||
this->_snes.enableAPUDebugging();
|
||||
}
|
||||
|
||||
void QtFullSFML::enableDebugBus()
|
||||
{
|
||||
this->_snes.enableMemoryBusDebugging();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user