if (!GModules.size()) {
PutStatus("No global modules loaded.");
} else {
+ PutStatus("Global modules:");
CTable GTable;
GTable.AddColumn("Name");
GTable.AddColumn("Description");
unsigned int uTableIdx = 0;
CString sTmp;
-
while (GTable.GetLine(uTableIdx++, sTmp)) {
PutStatus(sTmp);
}
if (!Modules.size()) {
PutStatus("You have no modules loaded.");
- return;
- }
-
- CTable Table;
- Table.AddColumn("Name");
- Table.AddColumn("Description");
+ } else {
+ PutStatus("User modules:");
+ CTable Table;
+ Table.AddColumn("Name");
+ Table.AddColumn("Description");
- for (unsigned int b = 0; b < Modules.size(); b++) {
- Table.AddRow();
- Table.SetCell("Name", Modules[b]->GetModName());
- Table.SetCell("Description", Modules[b]->GetDescription().Ellipsize(128));
- }
+ for (unsigned int b = 0; b < Modules.size(); b++) {
+ Table.AddRow();
+ Table.SetCell("Name", Modules[b]->GetModName());
+ Table.SetCell("Description", Modules[b]->GetDescription().Ellipsize(128));
+ }
- unsigned int uTableIdx = 0;
- CString sTmp;
- while (Table.GetLine(uTableIdx++, sTmp)) {
- PutStatus(sTmp);
+ unsigned int uTableIdx = 0;
+ CString sTmp;
+ while (Table.GetLine(uTableIdx++, sTmp)) {
+ PutStatus(sTmp);
+ }
}
}
#else
if (!ssGlobalMods.size()) {
PutStatus("No global modules available.");
} else {
+ PutStatus("Global modules:");
CTable GTable;
GTable.AddColumn("Name");
GTable.AddColumn("Description");
if (!ssUserMods.size()) {
PutStatus("No user modules available.");
- return;
- }
-
- CTable Table;
- Table.AddColumn("Name");
- Table.AddColumn("Description");
- set<CModInfo>::iterator it;
+ } else {
+ PutStatus("User modules:");
+ CTable Table;
+ Table.AddColumn("Name");
+ Table.AddColumn("Description");
+ set<CModInfo>::iterator it;
- for (it = ssUserMods.begin(); it != ssUserMods.end(); it++) {
- const CModInfo& Info = *it;
- Table.AddRow();
- Table.SetCell("Name", (m_pUser->GetModules().FindModule(Info.GetName()) ? "*" : " ") + Info.GetName());
- Table.SetCell("Description", Info.GetDescription().Ellipsize(128));
- }
+ for (it = ssUserMods.begin(); it != ssUserMods.end(); it++) {
+ const CModInfo& Info = *it;
+ Table.AddRow();
+ Table.SetCell("Name", (m_pUser->GetModules().FindModule(Info.GetName()) ? "*" : " ") + Info.GetName());
+ Table.SetCell("Description", Info.GetDescription().Ellipsize(128));
+ }
- unsigned int uTableIdx = 0;
- CString sTmp;
- while (Table.GetLine(uTableIdx++, sTmp)) {
- PutStatus(sTmp);
+ unsigned int uTableIdx = 0;
+ CString sTmp;
+ while (Table.GetLine(uTableIdx++, sTmp)) {
+ PutStatus(sTmp);
+ }
}
}
#else