diff options
author | The Android Open-Source Project <initial-contribution@android.com> | 2011-08-11 18:13:40 -0700 |
---|---|---|
committer | The Android Open-Source Project <initial-contribution@android.com> | 2011-08-11 18:13:40 -0700 |
commit | c462eb94f5e4f8b9dcb101ce4e4fcc714ddd7410 (patch) | |
tree | 60518c48dcf7f6aac791f58948e6a1bbfaaba948 /android/main.c | |
parent | 9d304115183fffcd5acb0882b70b1a5791ebe1cd (diff) | |
parent | 852434e616aba0607e71143022e8b7cb2362e639 (diff) | |
download | external_qemu-c462eb94f5e4f8b9dcb101ce4e4fcc714ddd7410.zip external_qemu-c462eb94f5e4f8b9dcb101ce4e4fcc714ddd7410.tar.gz external_qemu-c462eb94f5e4f8b9dcb101ce4e4fcc714ddd7410.tar.bz2 |
merge from tools_r13
Change-Id: Iabd0b49a5c3ad991da1b4f636ecdf881b1c271aa
Diffstat (limited to 'android/main.c')
-rw-r--r-- | android/main.c | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/android/main.c b/android/main.c index f20ea7b..814d2ec 100644 --- a/android/main.c +++ b/android/main.c @@ -1032,30 +1032,9 @@ int main(int argc, char **argv) args[n++] = opts->http_proxy; } - if (!opts->charmap) { - /* Try to find a valid charmap name */ - char* charmap = avdInfo_getCharmapFile(avd, hw->hw_keyboard_charmap); - if (charmap != NULL) { - D("autoconfig: -charmap %s", charmap); - opts->charmap = charmap; - } - } - if (opts->charmap) { - char charmap_name[AKEYCHARMAP_NAME_SIZE]; - - if (!path_exists(opts->charmap)) { - derror("Charmap file does not exist: %s", opts->charmap); - exit(1); - } - /* We need to store the charmap name in the hardware configuration. - * However, the charmap file itself is only used by the UI component - * and doesn't need to be set to the emulation engine. - */ - kcm_extract_charmap_name(opts->charmap, charmap_name, - sizeof(charmap_name)); - AFREE(hw->hw_keyboard_charmap); - hw->hw_keyboard_charmap = ASTRDUP(charmap_name); + args[n++] = "-charmap"; + args[n++] = opts->charmap; } if (opts->memcheck) { |