Optimize output

This commit is contained in:
jpirnay
2026-03-16 15:10:41 +01:00
parent 125ef361d2
commit 960cb91b23
2 changed files with 353 additions and 74 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ const char* I18n::get(StrId id) const {
}
// Use generated helper function - no hardcoded switch needed!
const char* const* strings = getStringArray(_language);
return strings[index];
const LangStrings lang = getLanguageStrings(_language);
return lang.data + lang.offsets[index];
}
void I18n::setLanguage(Language lang) {