From d717b53ed0e43645e3e67dda379d8400ec62a562 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Mon, 29 Sep 2003 21:37:31 +0000 Subject: Removed games_menu.[ch] and demo_menu.[ch] since they are no longer used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3965 a1c6a512-1295-4272-9138-f99709370657 --- apps/demo_menu.c | 81 ----------------------------------------- apps/demo_menu.h | 25 ------------- apps/games_menu.c | 106 ------------------------------------------------------ apps/games_menu.h | 26 -------------- apps/main_menu.c | 9 ----- 5 files changed, 247 deletions(-) delete mode 100644 apps/demo_menu.c delete mode 100644 apps/demo_menu.h delete mode 100644 apps/games_menu.c delete mode 100644 apps/games_menu.h diff --git a/apps/demo_menu.c b/apps/demo_menu.c deleted file mode 100644 index be8e44522c..0000000000 --- a/apps/demo_menu.c +++ /dev/null @@ -1,81 +0,0 @@ -/*************************************************************************** -* __________ __ ___. -* Open \______ \ ____ ____ | | _\_ |__ _______ ___ -* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / -* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < -* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ -* \/ \/ \/ \/ \/ -* $Id$ -* -* Copyright (C) 2002 Robert Hak -* -* All files in this archive are subject to the GNU General Public License. -* See the file COPYING in the source tree root for full license agreement. -* -* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY -* KIND, either express or implied. -* -****************************************************************************/ -#include "config.h" -#include "options.h" - -#ifdef HAVE_LCD_BITMAP -#ifdef USE_DEMOS - -#include -#include -#include "menu.h" -#include "demo_menu.h" -#include "lang.h" -#include "plugin.h" - -static bool bounce(void) -{ - if (plugin_load("/.rockbox/rocks/bounce.rock",NULL)==PLUGIN_USB_CONNECTED) - return true; - return false; -} - -static bool snow(void) -{ - if (plugin_load("/.rockbox/rocks/snow.rock",NULL) == PLUGIN_USB_CONNECTED) - return true; - return false; -} - -static bool cube(void) -{ - if (plugin_load("/.rockbox/rocks/cube.rock",NULL) == PLUGIN_USB_CONNECTED) - return true; - return false; -} - -static bool oscillograph(void) -{ - if (plugin_load("/.rockbox/rocks/oscillograph.rock",NULL)==PLUGIN_USB_CONNECTED) - return true; - return false; -} - -bool demo_menu(void) -{ - int m; - bool result; - - struct menu_items items[] = { - { str(LANG_BOUNCE), bounce }, - { str(LANG_SNOW), snow }, - { str(LANG_OSCILLOGRAPH), oscillograph }, - { str(LANG_CUBE), cube }, - }; - - m=menu_init( items, sizeof items / sizeof(struct menu_items) ); - result = menu_run(m); - menu_exit(m); - - return result; -} - -#endif -#endif - diff --git a/apps/demo_menu.h b/apps/demo_menu.h deleted file mode 100644 index dba057f4eb..0000000000 --- a/apps/demo_menu.h +++ /dev/null @@ -1,25 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2002 Robert Hak - * - * All files in this archive are subject to the GNU General Public License. - * See the file COPYING in the source tree root for full license agreement. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ -#ifndef _DEMOS_MENU_H -#define _DEMOS_MENU_H - -bool demo_menu(void); - -#endif - diff --git a/apps/games_menu.c b/apps/games_menu.c deleted file mode 100644 index 16acd804ba..0000000000 --- a/apps/games_menu.c +++ /dev/null @@ -1,106 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2002 Robert Hak - * - * All files in this archive are subject to the GNU General Public License. - * See the file COPYING in the source tree root for full license agreement. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ - -#include "config.h" -#include "options.h" - -#ifdef HAVE_LCD_BITMAP -#ifdef USE_GAMES - -#include -#include -#include "menu.h" -#include "games_menu.h" -#include "lang.h" -#include "plugin.h" - -static bool tetris(void) -{ - if (plugin_load("/.rockbox/rocks/tetris.rock",NULL)==PLUGIN_USB_CONNECTED) - return true; - return false; -} - -static bool sokoban(void) -{ - if (plugin_load("/.rockbox/rocks/sokoban.rock",NULL)==PLUGIN_USB_CONNECTED) - return true; - return false; -} - -static bool wormlet(void) -{ - if (plugin_load("/.rockbox/rocks/wormlet.rock",NULL)==PLUGIN_USB_CONNECTED) - return true; - return false; -} - -static bool flipit(void) -{ - if (plugin_load("/.rockbox/rocks/flipit.rock",NULL)==PLUGIN_USB_CONNECTED) - return true; - return false; -} - -static bool othelo(void) -{ - if (plugin_load("/.rockbox/rocks/othelo.rock",NULL)==PLUGIN_USB_CONNECTED) - return true; - return false; -} - -static bool sliding_puzzle(void) -{ - if (plugin_load("/.rockbox/rocks/sliding_puzzle.rock", - NULL)==PLUGIN_USB_CONNECTED) - return true; - return false; -} - -static bool star(void) -{ - if (plugin_load("/.rockbox/rocks/star.rock",NULL)==PLUGIN_USB_CONNECTED) - return true; - return false; -} - -bool games_menu(void) -{ - int m; - bool result; - - struct menu_items items[] = { - { str(LANG_TETRIS), tetris }, - { str(LANG_SOKOBAN), sokoban }, - { str(LANG_WORMLET), wormlet }, - { str(LANG_FLIPIT), flipit }, - { str(LANG_OTHELO), othelo }, - { str(LANG_SLIDING_PUZZLE), sliding_puzzle }, - { str(LANG_STAR), star }, - }; - - m=menu_init( items, sizeof items / sizeof(struct menu_items) ); - result = menu_run(m); - menu_exit(m); - - return result; -} - -#endif -#endif diff --git a/apps/games_menu.h b/apps/games_menu.h deleted file mode 100644 index 5c6d81b5a5..0000000000 --- a/apps/games_menu.h +++ /dev/null @@ -1,26 +0,0 @@ -/*************************************************************************** - * __________ __ ___. - * Open \______ \ ____ ____ | | _\_ |__ _______ ___ - * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / - * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < - * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ - * \/ \/ \/ \/ \/ - * $Id$ - * - * Copyright (C) 2002 Robert Hak - * - * All files in this archive are subject to the GNU General Public License. - * See the file COPYING in the source tree root for full license agreement. - * - * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY - * KIND, either express or implied. - * - ****************************************************************************/ -#ifndef _GAMES_MENU_H -#define _GAMES_MENU_H - -#include "menu.h" - -bool games_menu(void); - -#endif diff --git a/apps/main_menu.c b/apps/main_menu.c index eb68eb64b6..01aa3dc30c 100644 --- a/apps/main_menu.c +++ b/apps/main_menu.c @@ -61,15 +61,6 @@ #ifdef HAVE_LCD_BITMAP #include "bmp.h" #include "icons.h" - -#ifdef USE_GAMES -#include "games_menu.h" -#endif /* End USE_GAMES */ - -#ifdef USE_DEMOS -#include "demo_menu.h" -#endif /* End USE_DEMOS */ - #endif /* End HAVE_LCD_BITMAP */ int show_logo( void ) -- cgit v1.2.3