Added logic to ensure that empty symbolic debug files are not created when closing a ROM. Also, added logic to prevent saving of auto defined register symbolic names as they will aways load internally. This prevents debug files from being created when a user is not using emulator debug features.

This commit is contained in:
mjbudd77 2021-05-29 13:59:55 -04:00
parent a2aa5ba90f
commit 1c15c829d4
2 changed files with 11 additions and 1 deletions

View File

@ -3982,7 +3982,6 @@ void hexEditorSaveBookmarks(void)
{
std::list <HexEditorDialog_t*>::iterator it;
printf("Save Bookmarks\n");
hbm.saveToFile();
hbm.removeAll();

View File

@ -119,6 +119,17 @@ int debugSymbolPage_t::save(void)
char stmp[512];
int i,j;
if ( symMap.size() == 0 )
{
//printf("Skipping Empty Debug Page Save\n");
return 0;
}
if ( pageNum == -2 )
{
//printf("Skipping Register Debug Page Save\n");
return 0;
}
romFile = getRomFile();
if ( romFile == NULL )