diff options
author | David 'Digit' Turner <digit@android.com> | 2011-03-01 13:14:18 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@android.com> | 2011-03-01 15:07:12 +0100 |
commit | 092361e19ecc2992965729538984354099eea8cb (patch) | |
tree | 0bff7dfde28e93057cad9523386afd4001d8178d /android/main.c | |
parent | d543578f5d2e900ca9a95befaf15d49da163d5fb (diff) | |
download | external_qemu-092361e19ecc2992965729538984354099eea8cb.zip external_qemu-092361e19ecc2992965729538984354099eea8cb.tar.gz external_qemu-092361e19ecc2992965729538984354099eea8cb.tar.bz2 |
Remove un-needed "-netspeed full" and "-netdelay none".
This patch removes the use of "-netspeed full" and "-netdelay none"
when starting a core, since these values correspond to the default.
Usually, these were triggered by the values found in the skin files.
Change-Id: I88944c6736dc721a8645b1c7d87bc0cb949feec4
Diffstat (limited to 'android/main.c')
-rw-r--r-- | android/main.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/android/main.c b/android/main.c index 03cc2a8..d906f8d 100644 --- a/android/main.c +++ b/android/main.c @@ -299,15 +299,17 @@ int main(int argc, char **argv) parse_skin_files(opts->skindir, opts->skin, opts, hw, &skinConfig, &skinPath); - if (!opts->netspeed) { - if (skin_network_speed) - D("skin network speed: '%s'", skin_network_speed); - opts->netspeed = (char*)skin_network_speed; - } - if (!opts->netdelay) { - if (skin_network_delay) - D("skin network delay: '%s'", skin_network_delay); - opts->netdelay = (char*)skin_network_delay; + if (!opts->netspeed && skin_network_speed) { + D("skin network speed: '%s'", skin_network_speed); + if (strcmp(skin_network_speed, NETWORK_SPEED_DEFAULT) != 0) { + opts->netspeed = (char*)skin_network_speed; + } + } + if (!opts->netdelay && skin_network_delay) { + D("skin network delay: '%s'", skin_network_delay); + if (strcmp(skin_network_delay, NETWORK_DELAY_DEFAULT) != 0) { + opts->netdelay = (char*)skin_network_delay; + } } if (opts->trace) { |