]> git.sesse.net Git - ccbs/blobdiff - bigscreen/ccbs_bigscreen.cpp
Add the framework for a top 10 screen.
[ccbs] / bigscreen / ccbs_bigscreen.cpp
index 8180724c33bbb8f20231048fce44046f9357baa2..5c91b9e045fe4cfce7d7fcc4f5a3ec963d56b61f 100644 (file)
@@ -12,6 +12,7 @@
 #include "fetch_auxilliary_screens.h"
 #include "fonts.h"
 #include "groupscreen.h"
+#include "top10scorescreen.h"
 #include "splitscreen.h"
 #include "rotatescreen.h"
 
@@ -56,7 +57,11 @@ void init(pqxx::connection &conn)
 
        conn.perform(FetchAuxilliaryScreens(&aux_screens));
        for (std::vector<widestring>::const_iterator i = aux_screens.begin(); i != aux_screens.end(); ++i) {
-//             std::fprintf(stderr, "Auxilliary screen '%s'\n", i->c_str());
+               if (*i == widestring("top10scores")) {
+                       screens.push_back(new Top10ScoreScreen(conn, active_tournament.id));
+                       continue;
+               }
+               std::fprintf(stderr, "Foobarbaz?\n");
        }
        
        // hack