@@ -684,7 +684,8 @@ int rcheevos_get_richpresence(char *s, size_t len)
684
684
int _len = snprintf (s , len , msg_hash_to_str (MSG_CHEEVOS_RICH_PRESENCE_PLAYING ),
685
685
rcheevos_locals .game .title );
686
686
687
- if (_len < 0 ) { return -1 ; }
687
+ if (_len < 0 )
688
+ return -1 ;
688
689
}
689
690
return ret ;
690
691
}
@@ -1755,7 +1756,6 @@ static void rcheevos_show_game_placard(void)
1755
1756
else
1756
1757
{
1757
1758
char number_of_unsupported_msg [64 ];
1758
- char main_msg [256 ];
1759
1759
int _len ;
1760
1760
1761
1761
snprintf (number_of_unsupported_msg ,
@@ -1764,19 +1764,20 @@ static void rcheevos_show_game_placard(void)
1764
1764
number_of_unsupported );
1765
1765
1766
1766
if (settings -> bools .cheevos_start_active )
1767
- snprintf (main_msg , sizeof (main_msg ),
1767
+ snprintf (msg , sizeof (msg ),
1768
1768
msg_hash_to_str (MSG_CHEEVOS_ALL_ACHIEVEMENTS_ACTIVATED ),
1769
1769
number_of_core );
1770
1770
else
1771
- snprintf (main_msg , sizeof (main_msg ),
1771
+ snprintf (msg , sizeof (msg ),
1772
1772
msg_hash_to_str (MSG_CHEEVOS_NUMBER_ACHIEVEMENTS_UNLOCKED ),
1773
1773
number_of_core - number_of_active - number_of_unsupported ,
1774
1774
number_of_core );
1775
1775
1776
1776
_len = snprintf (msg , sizeof (msg ),
1777
- "%s (%s)" , main_msg , number_of_unsupported_msg );
1777
+ "%s (%s)" , msg , number_of_unsupported_msg );
1778
1778
1779
- if (_len < 0 ) { return ; }
1779
+ if (_len < 0 )
1780
+ return ;
1780
1781
}
1781
1782
1782
1783
msg [sizeof (msg ) - 1 ] = 0 ;
0 commit comments