From cefa7443eb3d3e4bb134595f756145426d5613e3 Mon Sep 17 00:00:00 2001 From: Vladimir Chtchetkine Date: Wed, 1 Sep 2010 09:17:11 -0700 Subject: Add android_port initialization in the core. Also some minor cleanups to the ui <-> core stuff. Change-Id: I7d64ec1aa694c027851b7e262b6e1b80bb6cef08 --- android/qemulator.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'android/qemulator.c') diff --git a/android/qemulator.c b/android/qemulator.c index 4d6c771..32983be 100644 --- a/android/qemulator.c +++ b/android/qemulator.c @@ -375,9 +375,9 @@ handle_key_command( void* opaque, SkinKeyCommand command, int down ) { case SKIN_KEY_COMMAND_TOGGLE_NETWORK: { - qemu_net_disable = !qemu_net_disable; - android_core_set_network_enabled(!qemu_net_disable); - D( "network is now %s", qemu_net_disable ? "disconnected" : "connected" ); + android_core_toggle_network(); + D( "network is now %s", android_core_is_network_disabled() ? + "disconnected" : "connected" ); } break; @@ -563,7 +563,7 @@ static void qemulator_refresh(QEmulator* emulator) #endif /* only save emulator config through clean exit */ qemulator_done(qemulator_get()); - qemu_system_shutdown_request(); + android_core_system_shutdown_request(); return; } } @@ -597,6 +597,6 @@ android_emulator_set_window_scale( double scale, int is_dpi ) void android_emulator_set_base_port( int port ) { - android_base_port = port; + /* Base port is already set in the emulator's core. */ qemulator_set_title(qemulator); } -- cgit v1.1