@@ -864,13 +864,14 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
864
864
865
865
// work out operating system
866
866
867
- char * sVersion = " unknown" ;
867
+ CString sVersion = TFormat (" Unknown (Platform %ld, Major %ld, Minor %ld)" ,
868
+ ver.dwPlatformId , ver.dwMajorVersion , ver.dwMinorVersion );
868
869
869
870
if (ver.dwPlatformId == 1 ) // Windows 95-style versions
870
871
{
871
872
switch (ver.dwMinorVersion )
872
873
{
873
- case 0 : sVersion = " Windows 95" ; break ;
874
+ case 0 : sVersion = " Windows 95" ; break ;
874
875
case 10 : sVersion = " Windows 98" ; break ;
875
876
case 90 : sVersion = " Windows ME" ; break ;
876
877
} // end of switch on dwMinorVersion
@@ -880,12 +881,12 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
880
881
switch (ver.dwMajorVersion )
881
882
{
882
883
case 3 : sVersion = " Windows NT 3.51" ; break ;
883
- case 4 : sVersion = " Windows NT" ; break ;
884
+ case 4 : sVersion = " Windows NT" ; break ;
884
885
case 5 :
885
886
switch (ver.dwMinorVersion )
886
887
{
887
- case 0 : sVersion = " Windows 2000" ; break ;
888
- case 1 : sVersion = " Windows XP" ; break ;
888
+ case 0 : sVersion = " Windows 2000" ; break ;
889
+ case 1 : sVersion = " Windows XP" ; break ;
889
890
case 2 : sVersion = " Windows Server 2003" ; break ;
890
891
} // end of switch on dwMinorVersion
891
892
break ; // end case 5 of dwMinorVersion
@@ -894,16 +895,15 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
894
895
switch (ver.dwMinorVersion )
895
896
{
896
897
case 0 : sVersion = " Windows Vista" ; break ;
897
- case 1 : sVersion = " Windows 7" ; break ;
898
+ case 1 : sVersion = " Windows 7" ; break ;
898
899
} // end of switch on dwMinorVersion
899
900
break ; // end case 6 of dwMinorVersion
900
901
901
902
} // end of switch on dwMajorVersion
902
903
} // end of dwPlatformId == 2
903
904
904
905
905
- Note (TFormat (" Operating system: %s" , sVersion ));
906
-
906
+ Note (TFormat (" Operating system: %s" , (LPCTSTR) sVersion ));
907
907
908
908
// show included library versions
909
909
Note (TFormat (" Using: %s, PCRE %s, PNG %s, SQLite3 %s, Zlib %s" ,
@@ -913,7 +913,6 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
913
913
SQLITE_VERSION,
914
914
ZLIB_VERSION));
915
915
916
-
917
916
// scripting info
918
917
919
918
Note (TFormat (" Script language: %s, enabled: %s" ,
@@ -926,10 +925,8 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
926
925
(LPCTSTR) m_strScriptFilename
927
926
));
928
927
929
-
930
928
// count triggers, aliases, timers
931
929
932
-
933
930
POSITION pos;
934
931
CString strName;
935
932
CTrigger * pTrigger;
@@ -1086,13 +1083,15 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
1086
1083
{
1087
1084
pPlugin = m_PluginList.GetNext (pos);
1088
1085
nTotal++;
1086
+
1087
+ if (pPlugin->m_bEnabled )
1088
+ nEnabled++;
1089
+
1089
1090
Note (TFormat (" Plugin: %s, '%s', enabled: %s" ,
1090
1091
(LPCTSTR) pPlugin->m_strID ,
1091
1092
(LPCTSTR) pPlugin->m_strName ,
1092
1093
(pPlugin->m_bEnabled ? " yes" : " no" )));
1093
1094
1094
- if (pPlugin->m_bEnabled )
1095
- nEnabled++;
1096
1095
1097
1096
}
1098
1097
@@ -1142,6 +1141,48 @@ VARIANT CMUSHclientDoc::Debug(LPCTSTR Command)
1142
1141
1143
1142
Note (TFormat (" ** Commands in command history: %ld" , nTotal));
1144
1143
1144
+ // miniwindows
1145
+ nTotal = 0 ;
1146
+ nEnabled = 0 ;
1147
+
1148
+ for (MiniWindowMapIterator it = m_MiniWindows.begin ();
1149
+ it != m_MiniWindows.end ();
1150
+ it++)
1151
+ {
1152
+ CMiniWindow * pWindow = it->second ;
1153
+ nTotal++;
1154
+ int nHotspots = 0 ;
1155
+
1156
+ if (pWindow->GetShow ())
1157
+ nEnabled++;
1158
+
1159
+ // count hotspots
1160
+ for (HotspotMapIterator hit = pWindow->m_Hotspots .begin ();
1161
+ hit != pWindow->m_Hotspots .end ();
1162
+ hit++)
1163
+ {
1164
+ nHotspots++;
1165
+ }
1166
+
1167
+ Note (TFormat (" Window: '%s', at (%ld,%ld,%ld,%ld), enabled: %s" ,
1168
+ it->first .c_str (),
1169
+ pWindow->m_rect .left ,
1170
+ pWindow->m_rect .top ,
1171
+ pWindow->m_rect .right ,
1172
+ pWindow->m_rect .bottom ,
1173
+ (pWindow->GetShow () ? " yes" : " no" )));
1174
+
1175
+ Note (TFormat (" width: %ld, height: %ld, position: %d, hotspots: %ld" ,
1176
+ pWindow->GetWidth (),
1177
+ pWindow->GetHeight (),
1178
+ pWindow->GetPosition (),
1179
+ nHotspots
1180
+ ));
1181
+
1182
+ }
1183
+
1184
+ Note (TFormat (" ** Miniwindows: %ld loaded, %ld enabled." , nTotal, nEnabled));
1185
+
1145
1186
Note (" " );
1146
1187
Note (" -------------- End summary --------------" );
1147
1188
0 commit comments