You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Improve usage of String.split() vs get_slice()
This commit is contained in:
@@ -602,7 +602,7 @@ Vector<String> OS_Android::get_system_font_path_for_text(const String &p_font_na
|
||||
font_name = font_aliases[font_name];
|
||||
}
|
||||
String root = String(getenv("ANDROID_ROOT")).path_join("fonts");
|
||||
String lang_prefix = p_locale.split("_")[0];
|
||||
String lang_prefix = p_locale.get_slicec('_', 0);
|
||||
Vector<String> ret;
|
||||
int best_score = 0;
|
||||
for (const List<FontInfo>::Element *E = fonts.front(); E; E = E->next()) {
|
||||
|
||||
Reference in New Issue
Block a user