feat: enable Companion simulator to switch UI language at runtime (#6510)

This commit is contained in:
philmoz
2025-11-03 09:57:09 +10:00
committed by GitHub
parent 8f96ec079b
commit 1931514140
318 changed files with 269720 additions and 389341 deletions
+4 -4
View File
@@ -54,12 +54,12 @@ static void sdReadTextFile(const char * filename, char lines[TEXT_VIEWER_LINES][
else if (c != '\\' && escape > 0 && escape < sizeof(escape_chars)) {
escape_chars[escape - 1] = c;
if (escape == 2 && !strncmp(escape_chars, "up", 2)) {
lines[current_line-menuVerticalOffset][line_length++] = STR_CHAR_UP[0];
c = STR_CHAR_UP[1];
lines[current_line-menuVerticalOffset][line_length++] = CHAR_UP[0];
c = CHAR_UP[1];
}
else if (escape == 2 && !strncmp(escape_chars, "dn", 2)) {
lines[current_line-menuVerticalOffset][line_length++] = STR_CHAR_DOWN[0];
c = STR_CHAR_DOWN[1];
lines[current_line-menuVerticalOffset][line_length++] = CHAR_DOWN[0];
c = CHAR_DOWN[1];
}
else if (escape == 3) {
int val = atoi(escape_chars);