- // hack
- screens.push_back(NULL);
- screens.push_back(NULL);
- screens.push_back(NULL);
- screens.push_back(NULL);
-
- if (screens[1] == NULL) {
- mainscreen = screens[0];
- } else {
- mainscreen = new SplitScreen(screens[0], screens[1], screens[2], screens[3]);
+ {
+ conn.perform(FetchAuxilliaryScreens(&aux_screens));
+ for (std::vector<widestring>::const_iterator i = aux_screens.begin(); i != aux_screens.end(); ++i) {
+ if (*i == widestring("top10scores")) {
+ rs->add_screen(new Top10ScoreScreen(conn, active_tournament.id));
+ continue;
+ }
+ if (*i == widestring("top5chosen")) {
+ rs->add_screen(new Top5ChosenScreen(conn, active_tournament.id));
+ continue;
+ }
+ }