scores.c
// resets/inits the scores/achievements for a specific game
resets/inits the scores/achievements for a specific game
resets / inits the scores / achievements for a specific game
void vis_score_reset(const char *game, int8_t game_index)
{
  GameT gametmp;
  ScoreT scoretmp = {0, "unknown", 0};
  AchievT achievtmp = {"unknown", "unknown"};
  strcpy(gametmp.name, game);
  strcpy(gametmp.id, GAME_HWID);
  for (uint8_t i = 0; i < 10; i++) {
    gametmp.scores[i] = scoretmp;
    if (i < 6) {
      gametmp.achievements[i] = achievtmp;
    }
  }
  vis_score_write(gametmp, game_index);
}
void vis_score_reset ( const char * game , int8_t game_index ) { GameT gametmp ; ScoreT scoretmp = { 0 , " " , 0 } ; AchievT achievtmp = { " " , " " } ; strcpy ( gametmp . name , game ) ; strcpy ( gametmp . id , GAME_HWID ) ; for ( uint8_t i = 0 ; i < 10 ; i ++ ) { gametmp . scores [ i ] = scoretmp ; if ( i < 6 ) { gametmp . achievements [ i ] = achievtmp ; } } vis_score_write ( gametmp , game_index ) ; }
resets/inits the scores/achievements for a specific game
resets / inits the scores / achievements for a specific game