mirror of https://github.com/xemu-project/xemu.git
cli: Allow overriding skip startup animation
This commit is contained in:
parent
8667193001
commit
faff091f5f
12
system/vl.c
12
system/vl.c
|
@ -2902,9 +2902,19 @@ void qemu_init(int argc, char **argv)
|
||||||
"none",
|
"none",
|
||||||
}[g_config.sys.avpack];
|
}[g_config.sys.avpack];
|
||||||
|
|
||||||
|
// Allow overriding the skip startup animation setting from command line
|
||||||
|
bool short_animation = g_config.general.skip_boot_anim;
|
||||||
|
for (int i = 1; i < argc; i++) {
|
||||||
|
if (argv[i] && strcmp(argv[i], "-short-animation") == 0) {
|
||||||
|
argv[i] = NULL;
|
||||||
|
short_animation = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fake_argv[fake_argc++] = g_strdup_printf("xbox%s%s%s,avpack=%s",
|
fake_argv[fake_argc++] = g_strdup_printf("xbox%s%s%s,avpack=%s",
|
||||||
(bootrom_arg != NULL) ? bootrom_arg : "",
|
(bootrom_arg != NULL) ? bootrom_arg : "",
|
||||||
g_config.general.skip_boot_anim ? ",short-animation=on" : "",
|
short_animation ? ",short-animation=on" : "",
|
||||||
",kernel-irqchip=off",
|
",kernel-irqchip=off",
|
||||||
avpack_str
|
avpack_str
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue