1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-05 09:48:42 +00:00

(Menu) Implement 'null' menu driver

This commit is contained in:
twinaphex 2015-03-09 14:39:39 +01:00
parent 9b442f9711
commit 6e62983cd5
5 changed files with 59 additions and 1 deletions

View File

@ -325,7 +325,8 @@ ifeq ($(HAVE_MENU_COMMON), 1)
menu/menu_entries_cbs_contentlist_switch.o \
menu/menu_entries_cbs.o \
menu/menu_list.o \
menu/menu_animation.o
menu/menu_animation.o \
menu/drivers/null.o
endif
ifeq ($(HAVE_FREETYPE), 1)

View File

@ -696,8 +696,11 @@ MENU
#include "../menu/menu_navigation.c"
#include "../menu/menu_animation.c"
#include "../menu/menu_database.c"
#include "../menu/drivers/null.c"
#endif
#ifdef HAVE_RMENU
#include "../menu/drivers/rmenu.c"
#endif

52
menu/drivers/null.c Normal file
View File

@ -0,0 +1,52 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2014-2015 - Jay McCarthy
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdint.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "../menu_driver.h"
#include "../menu.h"
#include "../../general.h"
menu_ctx_driver_t menu_ctx_null = {
NULL, // set_texture
NULL, // render_messagebox
NULL, // render
NULL, // frame
NULL, // init
NULL, // free
NULL, // context_reset
NULL, // context_destroy
NULL, // populate_entries
NULL, // toggle
NULL, // navigation_clear
NULL, // navigation_decrement
NULL, // navigation_increment
NULL, // navigation_set
NULL, // navigation_set_last
NULL, // navigation_descend_alphabet
NULL, // navigation_ascend_alphabet
NULL, // list_insert
NULL, // list_delete
NULL, // list_clear
NULL, // list_cache
NULL, // list_set_selection
NULL,
NULL,
"null",
};

View File

@ -41,6 +41,7 @@ static const menu_ctx_driver_t *menu_ctx_drivers[] = {
#if defined(HAVE_RGUI)
&menu_ctx_rgui,
#endif
&menu_ctx_null,
NULL
};

View File

@ -248,6 +248,7 @@ extern menu_ctx_driver_t menu_ctx_rgui;
extern menu_ctx_driver_t menu_ctx_glui;
extern menu_ctx_driver_t menu_ctx_xmb;
extern menu_ctx_driver_t menu_ctx_ios;
extern menu_ctx_driver_t menu_ctx_null;
/**
* menu_driver_find_handle: