Ejemplo n.º 1
0
static void initMain()
{

    // try to load a saved config, if none then get Wii language menu
    if(!loadConfig(FILE_CFG)) {
        // get the language of the Wii menu and map this to the Mahjongg Wii languages
        if(CONF_GetLanguage()<7) opt_lang = languages[CONF_GetLanguage()];

        // dirty hack to force English if not German as default
        if (opt_lang != 2) {
            opt_lang = 1;
        }
    }
    GRRLIB_Widescreen(opt_widescreen);

    // setup the layouts array for use in menu and game
    setupLayouts();

    //init scores with 0
    int i;
    for( i = 0; i < LAYOUTS * 2; ++i) {
        g_scores[i] = 0;
    }
    //load scores
    loadHighscores( FILE_HIGHSCORE, g_scores);
}
HighscoreManager::HighscoreManager()
{
    m_can_write=true;
    setFilename();
    loadHighscores();
}   // HighscoreManager