From 10e9932bf1f00dfd839f5bef96793bc033a541f8 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sun, 9 Dec 2012 18:55:28 +0100 Subject: [PATCH] add option to disable splash-screen in nand-loader (enabled by default) --- nand-loader/source/config.c | 1 + nand-loader/source/config.h | 3 +++ nand-loader/source/nandloader.c | 3 ++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/nand-loader/source/config.c b/nand-loader/source/config.c index 52ca60b..a2497ce 100644 --- a/nand-loader/source/config.c +++ b/nand-loader/source/config.c @@ -28,6 +28,7 @@ struct menu entryList[] = { { "Force NTSC", &loaderCfg.forceNtsc }, { "Force HDTV", &loaderCfg.forceHdtv }, { "Patch Video Mode", &loaderCfg.patchVmode }, + { "Show Splash", &loaderCfg.showSplash }, }; /* Macros */ diff --git a/nand-loader/source/config.h b/nand-loader/source/config.h index c7f2fc1..35d4be9 100644 --- a/nand-loader/source/config.h +++ b/nand-loader/source/config.h @@ -11,6 +11,9 @@ struct config { /* Video mode patching */ bool patchVmode; + + /* Splash screen */ + bool showSplash; }; /* NANDLoader configuration */ diff --git a/nand-loader/source/nandloader.c b/nand-loader/source/nandloader.c index 3d3b2da..af67cdf 100644 --- a/nand-loader/source/nandloader.c +++ b/nand-loader/source/nandloader.c @@ -60,7 +60,8 @@ int main(int argc, char **argv) Menu(); /* Draw loading image */ - Gui_DrawLoading(); + if(loaderCfg.showSplash) + Gui_DrawLoading(); /* Execute application */ Loader_Execute();