Skip to content

Commit

Permalink
Missed vl.c
Browse files Browse the repository at this point in the history
  • Loading branch information
BiatuAutMiahn committed Dec 20, 2024
1 parent 2a687c7 commit 033dc5f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion softmmu/vl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2782,8 +2782,18 @@ void qemu_init(int argc, char **argv)
"none",
}[g_config.sys.avpack];

fake_argv[fake_argc++] = g_strdup_printf("xbox%s%s%s,avpack=%s",
bool eject_after_boot = false;
for (int i = 1; i < argc; i++) {
if (argv[i] && strcmp(argv[i], "-eject_after_boot")==0) {
argv[i] = NULL;
eject_after_boot = true;
break;
}
}

fake_argv[fake_argc++] = g_strdup_printf("xbox%s%s%s%s,avpack=%s",
(bootrom_arg != NULL) ? bootrom_arg : "",
eject_after_boot ? ",eject-after-boot=on" : "",
g_config.general.skip_boot_anim ? ",short-animation=on" : "",
",kernel-irqchip=off",
avpack_str
Expand Down

0 comments on commit 033dc5f

Please sign in to comment.