Added logic for debug window reload symbols button.
This commit is contained in:
parent
097aaa3214
commit
ced49bebc7
|
@ -409,7 +409,8 @@ ConsoleDebugger::ConsoleDebugger(QWidget *parent)
|
|||
vbox->addWidget( regNamChkBox );
|
||||
|
||||
symDbgChkBox->setChecked(true);
|
||||
regNamChkBox->setChecked(true);
|
||||
//regNamChkBox->setChecked(true);
|
||||
regNamChkBox->setEnabled(false); // TODO
|
||||
|
||||
connect( romOfsChkBox, SIGNAL(stateChanged(int)), this, SLOT(displayROMoffsetCB(int)) );
|
||||
connect( symDbgChkBox, SIGNAL(stateChanged(int)), this, SLOT(symbolDebugEnableCB(int)) );
|
||||
|
@ -417,9 +418,11 @@ ConsoleDebugger::ConsoleDebugger(QWidget *parent)
|
|||
|
||||
button = new QPushButton( tr("Reload Symbols") );
|
||||
vbox->addWidget( button );
|
||||
connect( button, SIGNAL(clicked(void)), this, SLOT(reloadSymbolsCB(void)) );
|
||||
|
||||
button = new QPushButton( tr("ROM Patcher") );
|
||||
vbox->addWidget( button );
|
||||
button->setEnabled(false); // TODO
|
||||
|
||||
frame->setLayout( vbox );
|
||||
frame->setFrameShape( QFrame::Box );
|
||||
|
@ -436,6 +439,11 @@ ConsoleDebugger::ConsoleDebugger(QWidget *parent)
|
|||
hbox->addWidget( debFileChkBox );
|
||||
hbox->addWidget( idaFontChkBox );
|
||||
|
||||
button->setEnabled(false); // TODO
|
||||
autoOpenChkBox->setEnabled(false); // TODO
|
||||
debFileChkBox->setEnabled(false); // TODO
|
||||
idaFontChkBox->setEnabled(false); // TODO
|
||||
|
||||
setLayout( mainLayout );
|
||||
|
||||
windowUpdateReq = true;
|
||||
|
@ -996,6 +1004,13 @@ void ConsoleDebugger::registerNameEnableCB( int value )
|
|||
asmView->setRegisterNameEnable(value != Qt::Unchecked);
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
void ConsoleDebugger::reloadSymbolsCB(void)
|
||||
{
|
||||
debugSymbolTable.loadGameSymbols();
|
||||
|
||||
asmView->updateAssemblyView();
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
void ConsoleDebugger::debugRunCB(void)
|
||||
{
|
||||
if (FCEUI_EmulationPaused())
|
||||
|
|
|
@ -210,6 +210,7 @@ class ConsoleDebugger : public QDialog
|
|||
void edit_BP_CB(void);
|
||||
void delete_BP_CB(void);
|
||||
void resetCountersCB (void);
|
||||
void reloadSymbolsCB(void);
|
||||
void displayROMoffsetCB(int value);
|
||||
void symbolDebugEnableCB(int value);
|
||||
void registerNameEnableCB(int value);
|
||||
|
|
Loading…
Reference in New Issue