Fix all '3's being deleted when the debug string is 51 characters long

This commit is contained in:
meepingsnesroms
2018-05-26 20:40:49 -07:00
parent 3e72327c4f
commit feb937893f
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ void frontendHandleDebugPrint(){
//this debug handler doesnt need the \n
if(newDebugString.back() == '\n')
newDebugString.remove(newDebugString.length() - 1);
newDebugString.remove(newDebugString.length() - 1, 1);
if(!debugStrings.empty() && newDebugString == debugStrings.back()){
duplicateCallCount.back()++;

View File

@@ -204,7 +204,7 @@ void MainWindow::on_ctrlBtn_clicked(){
}
void MainWindow::on_debugger_clicked(){
if(emu.isRunning()){
if(emu.isInited()){
emu.pause();
ui->ctrlBtn->setIcon(QIcon(":/buttons/images/play.png"));
emuDebugger->exec();