diff options
author | Xavier Ducrohet <xav@android.com> | 2011-08-11 17:36:34 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2011-08-11 18:03:19 -0700 |
commit | cccd28ca5064a7bd14282cd774ee5bb7126d5845 (patch) | |
tree | f0a4eaf1afbbe1d3fd2eac93ea6b9a8e018cb942 /android/main.c | |
parent | f490aee025b3bab5bcdb065e5fc1b1abecf16b97 (diff) | |
download | external_qemu-cccd28ca5064a7bd14282cd774ee5bb7126d5845.zip external_qemu-cccd28ca5064a7bd14282cd774ee5bb7126d5845.tar.gz external_qemu-cccd28ca5064a7bd14282cd774ee5bb7126d5845.tar.bz2 |
Revert "Merge c80340 from master to r13: Move charmap to hardware properties". do not merge.
This reverts commit f490aee025b3bab5bcdb065e5fc1b1abecf16b97.
Change-Id: I59a0b2aebc8ab2b788a820a206c6eb4fc6e6e6d2
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 e71301c..ec7ea61 100644 --- a/android/main.c +++ b/android/main.c @@ -1031,30 +1031,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) { |