mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 09:32:52 +00:00
(Menu) Implement 'null' menu driver
This commit is contained in:
parent
9b442f9711
commit
6e62983cd5
@ -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)
|
||||
|
@ -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
52
menu/drivers/null.c
Normal 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",
|
||||
};
|
@ -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
|
||||
};
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user