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:
parent
a2aa5ba90f
commit
1c15c829d4
|
@ -3982,7 +3982,6 @@ void hexEditorSaveBookmarks(void)
|
|||
{
|
||||
std::list <HexEditorDialog_t*>::iterator it;
|
||||
|
||||
printf("Save Bookmarks\n");
|
||||
hbm.saveToFile();
|
||||
hbm.removeAll();
|
||||
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue