Skip to content

Commit c9789b3

Browse files
committed
Added list of SQLite databases to debug summary
1 parent 887ed4b commit c9789b3

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

world_debug.cpp

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,11 +1199,11 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
11991199
nTotal = 0;
12001200
nEnabled = 0;
12011201

1202-
for (MiniWindowMapIterator it = m_MiniWindows.begin ();
1203-
it != m_MiniWindows.end ();
1204-
it++)
1202+
for (MiniWindowMapIterator win_it = m_MiniWindows.begin ();
1203+
win_it != m_MiniWindows.end ();
1204+
win_it++)
12051205
{
1206-
CMiniWindow * pWindow = it->second;
1206+
CMiniWindow * pWindow = win_it->second;
12071207
nTotal++;
12081208
int nHotspots = 0;
12091209
int nFonts = 0;
@@ -1229,7 +1229,7 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
12291229
nImages++;
12301230

12311231
Note (TFormat ("Window: '%s', at (%ld,%ld,%ld,%ld), shown: %s",
1232-
it->first.c_str (),
1232+
win_it->first.c_str (),
12331233
pWindow->m_rect.left,
12341234
pWindow->m_rect.top,
12351235
pWindow->m_rect.right,
@@ -1279,7 +1279,18 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
12791279
SHOW_TRUE (m_logfile), SHOW_TRUE (m_bTrace) ));
12801280

12811281
// databases?
1282-
Note (TFormat ("SQLite3 databases: %i", m_Databases.size ()));
1282+
1283+
for (tDatabaseMapIterator db_it = m_Databases.begin ();
1284+
db_it != m_Databases.end ();
1285+
db_it++)
1286+
{
1287+
Note (TFormat ("Database: '%s', disk file: '%s'",
1288+
db_it->first.c_str (),
1289+
db_it->second->db_name.c_str ()
1290+
));
1291+
}
1292+
1293+
Note (TFormat ("** SQLite3 databases: %i", m_Databases.size ()));
12831294

12841295
// sound buffers?
12851296

0 commit comments

Comments
 (0)