You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add String::remove_char(s) methods for performance and convenience
This commit is contained in:
@@ -396,8 +396,7 @@ void EditorExportPlatformAndroid::_check_for_changes_poll_thread(void *ud) {
|
||||
// its format is "[property]: [value]" so changed it as like build.prop
|
||||
String p = props[j];
|
||||
p = p.replace("]: ", "=");
|
||||
p = p.replace("[", "");
|
||||
p = p.replace("]", "");
|
||||
p = p.remove_chars("[]");
|
||||
|
||||
if (p.begins_with("ro.product.model=")) {
|
||||
device = p.get_slicec('=', 1).strip_edges();
|
||||
|
||||
Reference in New Issue
Block a user