]> www.vanbest.org Git - sasc-ng.git/commitdiff
add warning if no registered systems
authorleslie <unknown>
Sun, 1 Feb 2009 11:47:40 +0000 (19:47 +0800)
committerleslie <unknown>
Sun, 1 Feb 2009 11:47:40 +0000 (19:47 +0800)
system.c

index c86f31adda1cf20ea958484b33e886012521f65a..9e5a1724a48566a354a05c6e9578c75055659a6b 100644 (file)
--- a/system.c
+++ b/system.c
@@ -380,9 +380,12 @@ cSystem *cSystems::FindBySysIdent(int ident)
 
 bool cSystems::Init(const char *cfgdir)
 {
+  int num=0;
   PRINTF(L_CORE_LOAD,"** registered systems:");
-  for(cSystemLink *sl=first; sl; sl=sl->next)
+  for(cSystemLink *sl=first; sl; sl=sl->next, num++)
     PRINTF(L_CORE_LOAD,"** %-16s  (pri %3d)",sl->name,sl->pri);
+  if(num<1)
+    PRINTF(L_GEN_WARN,"No registered systems! Won't decode anything! Where are your libs?");
   for(cSystemLink *sl=first; sl; sl=sl->next)
     if(!sl->Init(cfgdir)) return false;
   return true;