mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-26 21:10:42 +00:00
vl: Move input init to exit_preconfig
This commit is contained in:
parent
c9eb5dd9ce
commit
a5034584c0
@ -2651,6 +2651,8 @@ void qmp_x_exit_preconfig(Error **errp)
|
||||
qemu_create_cli_devices();
|
||||
qemu_machine_creation_done();
|
||||
|
||||
xemu_input_init();
|
||||
|
||||
if (loadvm) {
|
||||
load_snapshot(loadvm, NULL, false, NULL, &error_fatal);
|
||||
}
|
||||
|
@ -1540,12 +1540,6 @@ int main(int argc, char **argv)
|
||||
|
||||
DPRINTF("Main thread: initializing app\n");
|
||||
|
||||
qemu_mutex_lock_main_loop();
|
||||
qemu_mutex_lock_iothread();
|
||||
xemu_input_init();
|
||||
qemu_mutex_unlock_iothread();
|
||||
qemu_mutex_unlock_main_loop();
|
||||
|
||||
while (1) {
|
||||
sdl2_gl_refresh(&sdl2_console[0].dcl);
|
||||
assert(glGetError() == GL_NO_ERROR);
|
||||
|
Loading…
Reference in New Issue
Block a user