X-Git-Url: http://git.hcoop.net/clinton/Virtual-Jaguar-Rx.git/blobdiff_plain/aae93d8686c01e6f0dc755b04663b9144fcd6638..cbd79f6681578e8e8086cd175b1fbe5301a0b43d:/src/debugger/SourcesWin.cpp diff --git a/src/debugger/SourcesWin.cpp b/src/debugger/SourcesWin.cpp index 0dfa87e..c9b3a0e 100644 --- a/src/debugger/SourcesWin.cpp +++ b/src/debugger/SourcesWin.cpp @@ -158,15 +158,15 @@ void SourcesWindow::RefreshContents(void) size_t m68kPC = m68k_get_reg(NULL, M68K_REG_PC); int index = 0; size_t i; - bool Error; + DBGstatus Status; char *Filename; // Check valid PC if (m68kPC && NbSourcesInfos) { // Get source filename pointed by PC address - Filename = DBGManager_GetFullSourceFilenameFromAdr(m68kPC, &Error); - if (Error && Filename) + Filename = DBGManager_GetFullSourceFilenameFromAdr(m68kPC, &Status); + if (!Status && Filename) { // Look for a new tab for (i = 0; i < NbSourcesInfos; i++, !index) @@ -196,7 +196,7 @@ void SourcesWindow::RefreshContents(void) // Source file doesn't exist if (indexErrorTab == -1) { - indexErrorTab = sourcestabWidget->addTab(sourceErrorTab = new(SourceCWindow), tr("Source file not found")); + indexErrorTab = sourcestabWidget->addTab(sourceErrorTab = new(SourceCWindow), tr("Source file not available")); //sourceErrorTab->hide(); } sourcestabWidget->setCurrentIndex(indexErrorTab);