diff options
author | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-07-01 21:15:03 -0400 |
---|---|---|
committer | ProjectRevoTPP <projectrevotpp@hotmail.com> | 2017-07-01 21:15:03 -0400 |
commit | 87dc53438e56c09f72e0d30eab5a565137d16b63 (patch) | |
tree | 3df79caa16908c9b1d3357d24b4fcf3abdf3b373 | |
parent | 6493e7bbc7673f906ee7c009e80bed3d7b552620 (diff) |
text defines
-rw-r--r-- | include/text.h | 1 | ||||
-rwxr-xr-x | src/sound_check_menu.c | 16 |
2 files changed, 9 insertions, 8 deletions
diff --git a/include/text.h b/include/text.h index 6e32de6dd..2c579d227 100644 --- a/include/text.h +++ b/include/text.h @@ -6,6 +6,7 @@ #define CHAR_QUESTION_MARK 0xAC #define CHAR_PERIOD 0xAD #define CHAR_HYPHEN 0xAE +#define CHAR_3PERIODS 0xB0 #define CHAR_MALE 0xB5 #define CHAR_FEMALE 0xB6 #define CHAR_COMMA 0xB8 diff --git a/src/sound_check_menu.c b/src/sound_check_menu.c index 078b1d072..b23a2098d 100755 --- a/src/sound_check_menu.c +++ b/src/sound_check_menu.c @@ -1518,22 +1518,22 @@ void sub_80BA700(u16 soundIndex, u16 x, u16 y) // PrintSoundNumber ? for(i = 0; i < 3; i++) str[i] = 0; // initialize array - str[3] = 0xB0; - str[4] = 0xFF; + str[3] = CHAR_3PERIODS; + str[4] = EOS; someBool = FALSE; divisorValue = soundIndex / 100; if(divisorValue) { - str[0] = divisorValue + 0xA1; + str[0] = divisorValue + CHAR_0; someBool = TRUE; } divisorValue = (soundIndex % 100) / 10; if(divisorValue || someBool != FALSE) - str[1] = divisorValue + 0xA1; + str[1] = divisorValue + CHAR_0; - str[2] = ((soundIndex % 100) % 10) + 0xA1; + str[2] = ((soundIndex % 100) % 10) + CHAR_0; MenuPrint(str, x, y); } @@ -1545,9 +1545,9 @@ void sub_80BA79C(const u8 *const string, u16 x, u16 y) for(i = 0; i < 11; i++) str[i] = 0; // format string. - str[10] = 0xFF; // the above for loop formats the last element of the array unnecessarily. + str[10] = EOS; // the above for loop formats the last element of the array unnecessarily. - for(i = 0; string[i] != 0xFF && i < 10; i++) + for(i = 0; string[i] != EOS && i < 10; i++) str[i] = string[i]; MenuPrint(str, x, y); @@ -1800,7 +1800,7 @@ void sub_80BAE10(u8 var1, u8 var2) for(i = 0; i < var4; i++) str[i] = 0; - str[var4 + 1] = 0xFF; + str[var4 + 1] = CHAR_0; someVar = 0; if(var1 < 0) // make absolute value? wtf |