mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-25 23:48:29 +00:00
Starting to reenable debuggers
This commit is contained in:
@@ -3,21 +3,17 @@
|
||||
//
|
||||
|
||||
#include "HeaderViewer.hpp"
|
||||
#include "../Utility/Utility.hpp"
|
||||
#include "../SNES.hpp"
|
||||
#include "Utility/Utility.hpp"
|
||||
#include "SNES.hpp"
|
||||
|
||||
namespace ComSquare::Debugger
|
||||
{
|
||||
HeaderViewer::HeaderViewer(ComSquare::SNES &snes)
|
||||
: _window(new ClosableWindow<HeaderViewer>(*this, &HeaderViewer::disableDebugger)),
|
||||
_snes(snes),
|
||||
_cartridge(*snes.cartridge),
|
||||
_ui()
|
||||
: _window(new ClosableWindow([&snes] { snes.disableHeaderViewer(); })),
|
||||
_snes(snes),
|
||||
_cartridge(snes.cartridge),
|
||||
_ui()
|
||||
{
|
||||
this->_window->setContextMenuPolicy(Qt::NoContextMenu);
|
||||
this->_window->setAttribute(Qt::WA_QuitOnClose, false);
|
||||
this->_window->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
this->_ui.setupUi(this->_window);
|
||||
this->_ui.nameLineEdit->setText(this->_cartridge.header.gameName.c_str());
|
||||
std::string memType;
|
||||
@@ -55,11 +51,6 @@ namespace ComSquare::Debugger
|
||||
this->_window->show();
|
||||
}
|
||||
|
||||
void HeaderViewer::disableDebugger()
|
||||
{
|
||||
this->_snes.disableHeaderViewer();
|
||||
}
|
||||
|
||||
void HeaderViewer::focus()
|
||||
{
|
||||
this->_window->activateWindow();
|
||||
|
||||
Reference in New Issue
Block a user