Merge pull request #111047 from Calinou/cli-text-driver-add-aliases

Add `TextServer.get_short_name()` and use it in `--text-driver`
This commit is contained in:
Thaddeus Crews
2026-06-24 14:52:59 -05:00
12 changed files with 43 additions and 4 deletions
+1 -1
View File
@@ -3722,7 +3722,7 @@ Error Main::setup2(bool p_show_boot_logo) {
if (!text_driver.is_empty()) {
/* Load user selected text server. */
for (int i = 0; i < TextServerManager::get_singleton()->get_interface_count(); i++) {
if (TextServerManager::get_singleton()->get_interface(i)->get_name() == text_driver) {
if (TextServerManager::get_singleton()->get_interface(i)->get_short_name() == text_driver || TextServerManager::get_singleton()->get_interface(i)->get_name() == text_driver) {
text_driver_idx = i;
break;
}