From bd5addab9a8f47c0f0dcff9993750f25f2359386 Mon Sep 17 00:00:00 2001 From: kkurbjun Date: Mon, 17 Apr 2006 05:01:33 +0000 Subject: [PATCH] Add in error return if appropriate. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9702 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/doom/rockdoom.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/plugins/doom/rockdoom.c b/apps/plugins/doom/rockdoom.c index 23d977b87..49c78be18 100644 --- a/apps/plugins/doom/rockdoom.c +++ b/apps/plugins/doom/rockdoom.c @@ -778,8 +778,8 @@ int doom_menu() if( (status=Dbuild_base(names)) == 0 ) // Build up the base wad files (select last added file) { - rb->splash(HZ, true, "Missing Base WAD!"); - return -1; + rb->splash(HZ*2, true, "Missing Base WAD!"); + return -2; } int numadd=Dbuild_filelistm(&addons, "No Addon", GAMEBASE"addons/", ".WAD" ); @@ -882,9 +882,11 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) myargv =0; myargc=0; - int result=doom_menu(); + rb->lcd_clear_display(); - if( result == -1) return PLUGIN_OK; // No base wads found or quit was selected + int result = doom_menu(); + if( result == -1 ) return PLUGIN_OK; // Quit was selected + else if( result == -2 ) return PLUGIN_ERROR; // Missing base wads Dhandle_ver( namemap[ result ] ); -- 2.11.4.GIT