diff --git a/ui/xemu.c b/ui/xemu.c index 38cd943f0e3..75ed268565f 100644 --- a/ui/xemu.c +++ b/ui/xemu.c @@ -1557,40 +1557,10 @@ int main(int argc, char **argv) void xemu_eject_disc(Error **errp) { xbox_smc_eject_button(); - - /*Error *error = NULL; - - xbox_smc_eject_button(); - xemu_settings_set_string(&g_config.sys.files.dvd_path, ""); - - // Xbox software may request that the drive open, but do it now anyway - qmp_eject(true, "ide0-cd1", false, NULL, true, false, &error); - if (error) { - error_propagate(errp, error); - } - - xbox_smc_update_tray_state();*/ } void xemu_load_disc(const char *path, Error **errp) { xemu_settings_set_string(&g_config.sys.files.dvd_path, path); xbox_smc_tray_eject(1); // issue smc tray load command - - // /*Error *error = NULL; - - // // Ensure an eject sequence is always triggered so Xbox software reloads - // xbox_smc_eject_button(); - // xemu_settings_set_string(&g_config.sys.files.dvd_path, ""); - - // qmp_blockdev_change_medium(true, "ide0-cd1", false, NULL, path, - // false, "", false, false, false, 0, - // &error); - // if (error) { - // error_propagate(errp, error); - // } else { - // xemu_settings_set_string(&g_config.sys.files.dvd_path, path); - // } - - // xbox_smc_update_tray_state();*/ }