mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
Fix another C89 issue
This commit is contained in:
parent
f9fa2ab2b7
commit
32c1c3134e
@ -21,15 +21,16 @@ bool badge_exists(const char* filepath)
|
|||||||
|
|
||||||
void set_badge_menu_texture(badges_ctx_t * badges, int i)
|
void set_badge_menu_texture(badges_ctx_t * badges, int i)
|
||||||
{
|
{
|
||||||
|
char fullpath[PATH_MAX_LENGTH];
|
||||||
const char * locked_suffix = (badges->badge_locked[i] == true) ? "_lock.png" : ".png";
|
const char * locked_suffix = (badges->badge_locked[i] == true) ? "_lock.png" : ".png";
|
||||||
|
|
||||||
unsigned int bufferSize = 16;
|
unsigned int bufferSize = 16;
|
||||||
|
/* TODO/FIXME - variable length forbidden in C89 - rewrite this! */
|
||||||
char badge_file[bufferSize];
|
char badge_file[bufferSize];
|
||||||
|
|
||||||
snprintf(badge_file, bufferSize, "%s", badges->badge_id_list[i]);
|
snprintf(badge_file, bufferSize, "%s", badges->badge_id_list[i]);
|
||||||
strcat(badge_file, locked_suffix);
|
strcat(badge_file, locked_suffix);
|
||||||
|
|
||||||
char fullpath[PATH_MAX_LENGTH];
|
|
||||||
fill_pathname_application_special(fullpath,
|
fill_pathname_application_special(fullpath,
|
||||||
PATH_MAX_LENGTH * sizeof(char),
|
PATH_MAX_LENGTH * sizeof(char),
|
||||||
APPLICATION_SPECIAL_DIRECTORY_THUMBNAILS_CHEEVOS_BADGES);
|
APPLICATION_SPECIAL_DIRECTORY_THUMBNAILS_CHEEVOS_BADGES);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user