From faff091f5fe2e125a5bb5d4f94833f6e36644bc2 Mon Sep 17 00:00:00 2001 From: ShiralynDev Date: Sun, 25 May 2025 10:59:13 +0200 Subject: [PATCH] cli: Allow overriding skip startup animation --- system/vl.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/system/vl.c b/system/vl.c index 580d0cfd28..0341905b2f 100644 --- a/system/vl.c +++ b/system/vl.c @@ -2902,9 +2902,19 @@ void qemu_init(int argc, char **argv) "none", }[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", (bootrom_arg != NULL) ? bootrom_arg : "", - g_config.general.skip_boot_anim ? ",short-animation=on" : "", + short_animation ? ",short-animation=on" : "", ",kernel-irqchip=off", avpack_str );