Navigation Menu

Skip to content

Commit

Permalink
BP_music_cmt: Resolve "@" to a music title format string.
Browse files Browse the repository at this point in the history
I will regret this half a year from now. Anyway, closes #14.
  • Loading branch information
nmlgc committed Aug 20, 2013
1 parent cc50311 commit d73613d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions thcrap_tsa/src/music.c
Expand Up @@ -80,6 +80,11 @@ int BP_music_cmt(x86_reg_t *regs, json_t *bp_info)
json_t *cmt = json_object_get_numkey(musiccmt, cache_track);
if(json_is_array(cmt)) {
*str = json_array_get_string_safe(cmt, cache_cmt_line);

// Resolve "@" to a music title format string
if(!strcmp(*str, "@")) {
music_title_print(str, format_id, cache_track);
}
}
}
return 1;
Expand Down

0 comments on commit d73613d

Please sign in to comment.