- /* Load set metadata. */
-
- strcpy(s->file, filename);
-
- if ((res = fgets(buf, MAXSTR, fin) != NULL))
- strcpy(s->name, strip_eol(buf));
- if (res && (res = fgets(buf, MAXSTR, fin) != NULL))
- strcpy(s->desc, strip_eol(buf));
- if (res && (res = fgets(buf, MAXSTR, fin) != NULL))
- strcpy(s->id, strip_eol(buf));
- if (res && (res = fgets(buf, MAXSTR, fin) != NULL))
- strcpy(s->shot, strip_eol(buf));
- if (res && (res = fgets(buf, MAXSTR, fin) != NULL))
- sscanf(buf, "%d %d %d %d %d %d",
- &s->time_score.timer[0],
- &s->time_score.timer[1],
- &s->time_score.timer[2],
- &s->coin_score.coins[0],
- &s->coin_score.coins[1],
- &s->coin_score.coins[2]);
-
- strcpy(s->user_scores, "neverballhs-");
- strcat(s->user_scores, s->id);
-
- /* Count levels. */