mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-21 06:35:10 +00:00
Remplacing the DMA viewer by a registers viewer
This commit is contained in:
32
sources/Debugger/RegisterViewer.cpp
Normal file
32
sources/Debugger/RegisterViewer.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// Created by anonymus-raccoon on 5/28/20.
|
||||
//
|
||||
|
||||
#include "RegisterViewer.hpp"
|
||||
#include "../SNES.hpp"
|
||||
|
||||
namespace ComSquare::Debugger
|
||||
{
|
||||
RegisterViewer::RegisterViewer(SNES &snes)
|
||||
: _window(new ClosableWindow<RegisterViewer>(*this, &RegisterViewer::disableDebugger)),
|
||||
_ui(),
|
||||
_snes(snes)
|
||||
{
|
||||
this->_window->setContextMenuPolicy(Qt::NoContextMenu);
|
||||
this->_window->setAttribute(Qt::WA_QuitOnClose, false);
|
||||
this->_window->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
this->_ui.setupUi(this->_window);
|
||||
this->_window->show();
|
||||
}
|
||||
|
||||
void RegisterViewer::focus()
|
||||
{
|
||||
this->_window->activateWindow();
|
||||
}
|
||||
|
||||
void RegisterViewer::disableDebugger()
|
||||
{
|
||||
this->_snes.disableRegisterDebugging();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user