if(f) {
// If the file exists, read from it
for(i = 0; i<N_SCORES; i++) {
if(f) {
// If the file exists, read from it
for(i = 0; i<N_SCORES; i++) {
fscanf(f, "%d %31[^\n]", &g_scores[i].score, g_scores[i].name);
}
fclose(f);
fscanf(f, "%d %31[^\n]", &g_scores[i].score, g_scores[i].name);
}
fclose(f);
SFont_Write(s, g_font, x, y, t);
snprintscore(t, 1024, g_scores[i].score);
SFont_Write(s, g_font, x+50, y, t);
SFont_Write(s, g_font, x, y, t);
snprintscore(t, 1024, g_scores[i].score);
SFont_Write(s, g_font, x+50, y, t);
- snprintf(t, 1024, "%s", g_scores[i].name);
+ if(i == cur_score) snprintf(t, 1024, "%s_", g_scores[i].name);
+ else snprintf(t, 1024, "%s", g_scores[i].name);
SFont_Write(s, g_font, x+180, y, t);
}
}
SFont_Write(s, g_font, x+180, y, t);
}
}