mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-19 21:55:11 +00:00
Making the debugger spawn on invalid rom exceptions (invalid address access, invalid opcode...) & starting the dissasembly view
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
#include <QMenuBar>
|
||||
#include <iostream>
|
||||
#include "QtSFML.hpp"
|
||||
#include "../../Exceptions/InvalidOpcode.hpp"
|
||||
#include "../../Exceptions/InvalidAddress.hpp"
|
||||
|
||||
#ifdef Q_WS_X11
|
||||
#include <Qt/qx11info_x11.h>
|
||||
@@ -84,6 +86,10 @@ namespace ComSquare::Renderer
|
||||
{
|
||||
try {
|
||||
this->_snes.update();
|
||||
} catch (InvalidOpcode &e) {
|
||||
this->_snes.enableCPUDebugging();
|
||||
} catch (InvalidAddress &e) {
|
||||
this->_snes.enableCPUDebugging();
|
||||
} catch (std::exception &e) {
|
||||
std::cerr << "An error occurred: " << e.what() << std::endl;
|
||||
QApplication::quit();
|
||||
|
||||
Reference in New Issue
Block a user