33extern uint8_t CFG_SPEEDUP_MUSIC_FOR_LAST_TRIFORCE_PIECE ;
44extern uint8_t CFG_SLOWDOWN_MUSIC_WHEN_LOWHP ;
55extern char CFG_SONG_NAMES [];
6- extern uint8_t CFG_SONG_NAME_POSITION ;
6+ extern uint8_t CFG_SONG_NAME_STATE ;
77
88static uint16_t previousSeqIndexChange = 0 ;
99static uint8_t isSlowedDown = 0 ;
@@ -62,21 +62,17 @@ int bgm_sequence_ids[47] = {
6262 0x55 , 0x56 , 0x58 , 0x5A , 0x5B , 0x5C , 0x5F , 0x60 , 0x61 , 0x62 , 0x63 , 0x64 , 0x65 , 0x6B , 0x6C ,
6363};
6464
65- #define TEXT_WIDTH 6
66- #define TEXT_HEIGHT 11
67- #define SONG_NAME_FRAMES_VISIBLE 100
68- #define SONG_NAME_FRAMES_FADE_AWAY 80
69- #define SONG_NAME_FRAMES_FADE_INTO 5
65+ static const uint8_t TEXT_WIDTH = 6 ;
66+ static const uint8_t TEXT_HEIGHT = 11 ;
67+ static const uint8_t SONG_NAME_FRAMES_VISIBLE = 100 ;
68+ static const uint8_t SONG_NAME_FRAMES_FADE_AWAY = 80 ;
69+ static const uint8_t SONG_NAME_FRAMES_FADE_INTO = 5 ;
7070static uint32_t frames = 0 ;
7171static uint32_t display_song_name_flag = 0 ;
7272static uint16_t previousSeqIndexName = 0 ;
7373
74- uint8_t are_song_displayed () {
75- return * CFG_SONG_NAMES ? 1 : 0 ;
76- }
77-
7874void display_song_name (z64_disp_buf_t * db ) {
79- if (are_song_displayed () &&
75+ if (CFG_SONG_NAME_STATE > SONG_NAME_NONE &&
8076 !dungeon_info_is_drawn () && // Don't display if the custom rando pause screen if displayed.
8177 !(z64_link .state_flags_2 & 0x8000000 )) { // Don't display if Link is playing the Ocarina.
8278
@@ -100,7 +96,7 @@ void display_song_name(z64_disp_buf_t* db) {
10096 alpha = 255 ;
10197 frames = 0 ;
10298 }
103- else if (CFG_SONG_NAME_POSITION == SONG_NAME_PAUSE ) {
99+ else if (CFG_SONG_NAME_STATE == SONG_NAME_PAUSE ) {
104100 return ;
105101 }
106102 else {
@@ -152,7 +148,7 @@ void display_song_name(z64_disp_buf_t* db) {
152148}
153149
154150void display_song_name_on_file_select (z64_disp_buf_t * db ) {
155- if (! dungeon_info_is_drawn () && are_song_displayed () ) {
151+ if (CFG_SONG_NAME_STATE > SONG_NAME_NONE ) {
156152 uint8_t top = 7 ;
157153 uint8_t left = 7 ;
158154 uint8_t alpha = 255 ;
0 commit comments