Beispiel #1
0
/* from titlescreen, to allow for user-login to occur.         */
void initialize_options_user(void)
{
    /* Read in user-specific settings, if desired.  By    */
    /* default, this restores settings from the player's last */
    /* game:                                                  */
    if (Opts_GetGlobalOpt(PER_USER_CONFIG))
    {
        if (!read_user_config_file(local_game))
        {
            fprintf(stderr, "\nCould not find user's config file.\n");
            /* can still proceed using hard-coded defaults.         */
        }

        /* If game being run for first time, try to write file: */
        if (!write_user_config_file(local_game))
        {
            fprintf(stderr, "\nUnable to write user's config file.\n");
        }
    }

    /* Read the lessons directory to determine which lesson   */
    /* files are available.                                   */
    if (!parse_lesson_file_directory())
        fprintf(stderr,"\nCould not parse the lesson file directory.\n");

    /* Now set up high score tables: */
    initialize_scores();
    if (!read_high_scores())
    {
        fprintf(stderr, "\nCould not find high score table.\n");
        /* (can still proceed).         */
    }

    DEBUGCODE(debug_setup)
        print_high_scores(stdout);
}
Beispiel #2
0
void matrix::init() {
	initialize_scores();
}
Beispiel #3
0
void initialize_globals() {
	initialize_bases(); /* Prepare the generic base lookup array*/
	initialize_scores();
	initialize_seqio_buffers();
}