Skip to content

Commit

Permalink
Quick Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
BiatuAutMiahn committed Dec 20, 2024
1 parent 14a84cb commit 24e0611
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions ui/xemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();*/
}

0 comments on commit 24e0611

Please sign in to comment.