Adding a get opt

This commit is contained in:
AnonymusRaccoon
2020-02-17 14:06:41 +01:00
parent 0cabff6bae
commit ebd9cc8c97
3 changed files with 43 additions and 9 deletions

View File

@@ -70,7 +70,12 @@ namespace ComSquare::Renderer
void QtFullSFML::_onUpdate()
{
this->_snes.update();
try {
this->_snes.update();
} catch (std::exception &e) {
std::cerr << "An error occurred: " << e.what() << std::endl;
QApplication::quit();
}
}
void QtFullSFML::enableDebugCPU()