2014-09-12 03:54:58 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
|
|
|
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
2017-01-22 12:40:32 +00:00
|
|
|
* Copyright (C) 2011-2017 - Daniel De Matteis
|
2014-09-12 03:54:58 +00:00
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2015-02-14 00:51:28 +00:00
|
|
|
#ifndef _MENU_SETTING_H
|
|
|
|
#define _MENU_SETTING_H
|
2014-09-12 03:54:58 +00:00
|
|
|
|
2015-06-02 18:26:27 +00:00
|
|
|
#include <stdint.h>
|
2015-06-03 09:24:53 +00:00
|
|
|
#include <stdlib.h>
|
2016-06-03 03:49:46 +00:00
|
|
|
|
2015-06-03 09:24:53 +00:00
|
|
|
#include <boolean.h>
|
2016-06-03 03:49:46 +00:00
|
|
|
#include <retro_common_api.h>
|
2015-06-03 09:24:53 +00:00
|
|
|
|
2018-10-01 01:42:54 +00:00
|
|
|
#include <lists/file_list.h>
|
|
|
|
|
2016-08-29 01:07:20 +00:00
|
|
|
#include "../setting_list.h"
|
2015-11-21 15:32:22 +00:00
|
|
|
|
2016-06-03 03:49:46 +00:00
|
|
|
RETRO_BEGIN_DECLS
|
2014-10-12 18:22:33 +00:00
|
|
|
|
2016-03-18 21:16:57 +00:00
|
|
|
enum menu_setting_ctl_state
|
|
|
|
{
|
2016-03-18 21:23:51 +00:00
|
|
|
MENU_SETTING_CTL_NONE = 0,
|
2016-03-18 21:31:14 +00:00
|
|
|
MENU_SETTING_CTL_NEW,
|
2016-03-18 22:31:11 +00:00
|
|
|
MENU_SETTING_CTL_IS_OF_PATH_TYPE,
|
|
|
|
MENU_SETTING_CTL_ACTION_RIGHT
|
2016-03-18 21:16:57 +00:00
|
|
|
};
|
|
|
|
|
2015-06-03 09:24:53 +00:00
|
|
|
enum setting_list_flags
|
|
|
|
{
|
2015-10-18 19:05:33 +00:00
|
|
|
SL_FLAG_MAIN_MENU = (1 << 0),
|
|
|
|
SL_FLAG_SETTINGS = (1 << 1),
|
|
|
|
SL_FLAG_SETTINGS_DRIVER_OPTIONS = (1 << 2),
|
|
|
|
SL_FLAG_SETTINGS_CORE_OPTIONS = (1 << 3),
|
|
|
|
SL_FLAG_SETTINGS_CONFIGURATION_OPTIONS = (1 << 4),
|
|
|
|
SL_FLAG_SETTINGS_REWIND_OPTIONS = (1 << 5),
|
|
|
|
SL_FLAG_SETTINGS_VIDEO_OPTIONS = (1 << 6),
|
|
|
|
SL_FLAG_SETTINGS_SHADER_OPTIONS = (1 << 7),
|
|
|
|
SL_FLAG_SETTINGS_FONT_OPTIONS = (1 << 8),
|
|
|
|
SL_FLAG_SETTINGS_AUDIO_OPTIONS = (1 << 9),
|
|
|
|
SL_FLAG_SETTINGS_INPUT_OPTIONS = (1 << 10),
|
|
|
|
SL_FLAG_SETTINGS_INPUT_HOTKEY_OPTIONS = (1 << 11),
|
|
|
|
SL_FLAG_SETTINGS_OVERLAY_OPTIONS = (1 << 12),
|
|
|
|
SL_FLAG_SETTINGS_MENU_OPTIONS = (1 << 13),
|
|
|
|
SL_FLAG_SETTINGS_MULTIMEDIA_OPTIONS = (1 << 14),
|
|
|
|
SL_FLAG_SETTINGS_UI_OPTIONS = (1 << 15),
|
|
|
|
SL_FLAG_SETTINGS_CHEEVOS_OPTIONS = (1 << 16),
|
|
|
|
SL_FLAG_SETTINGS_CORE_UPDATER_OPTIONS = (1 << 17),
|
|
|
|
SL_FLAG_SETTINGS_NETPLAY_OPTIONS = (1 << 18),
|
|
|
|
SL_FLAG_SETTINGS_USER_OPTIONS = (1 << 19),
|
|
|
|
SL_FLAG_SETTINGS_DIRECTORY_OPTIONS = (1 << 20),
|
|
|
|
SL_FLAG_SETTINGS_PRIVACY_OPTIONS = (1 << 21),
|
|
|
|
SL_FLAG_SETTINGS_PLAYLIST_OPTIONS = (1 << 22),
|
|
|
|
SL_FLAG_SETTINGS_MENU_BROWSER_OPTIONS = (1 << 23),
|
|
|
|
SL_FLAG_SETTINGS_PATCH_OPTIONS = (1 << 24),
|
|
|
|
SL_FLAG_SETTINGS_RECORDING_OPTIONS = (1 << 25),
|
|
|
|
SL_FLAG_SETTINGS_FRAME_THROTTLE_OPTIONS = (1 << 26),
|
|
|
|
SL_FLAG_SETTINGS_LOGGING_OPTIONS = (1 << 27),
|
|
|
|
SL_FLAG_SETTINGS_SAVING_OPTIONS = (1 << 28),
|
2015-10-18 23:46:33 +00:00
|
|
|
SL_FLAG_SETTINGS_SUB_ACCOUNTS_OPTIONS = (1 << 29),
|
2016-07-10 17:35:01 +00:00
|
|
|
SL_FLAG_SETTINGS_ALL = (1 << 30)
|
2015-06-03 09:24:53 +00:00
|
|
|
};
|
|
|
|
|
2015-10-18 19:05:33 +00:00
|
|
|
#define SL_FLAG_SETTINGS_GROUP_ALL (SL_FLAG_SETTINGS_ALL - SL_FLAG_MAIN_MENU)
|
2015-06-03 09:24:53 +00:00
|
|
|
|
2015-06-06 14:26:55 +00:00
|
|
|
int menu_setting_generic(rarch_setting_t *setting, bool wraparound);
|
2015-01-25 05:17:55 +00:00
|
|
|
|
2018-09-23 08:59:09 +00:00
|
|
|
int menu_setting_set(unsigned type, unsigned action, bool wraparound);
|
2014-09-24 05:56:47 +00:00
|
|
|
|
2015-06-02 18:26:27 +00:00
|
|
|
/**
|
2015-06-03 09:59:14 +00:00
|
|
|
* menu_setting_find:
|
2015-06-02 18:26:27 +00:00
|
|
|
* @name : name of setting to search for
|
|
|
|
*
|
|
|
|
* Search for a setting with a specified name (@name).
|
|
|
|
*
|
|
|
|
* Returns: pointer to setting if found, NULL otherwise.
|
|
|
|
**/
|
2015-06-03 09:59:14 +00:00
|
|
|
rarch_setting_t *menu_setting_find(const char *label);
|
2015-06-02 18:26:27 +00:00
|
|
|
|
2016-06-19 22:31:13 +00:00
|
|
|
rarch_setting_t *menu_setting_find_enum(enum msg_hash_enums enum_idx);
|
2016-06-14 23:06:58 +00:00
|
|
|
|
2018-04-11 04:11:23 +00:00
|
|
|
int menu_action_handle_setting(rarch_setting_t *setting,
|
2015-06-03 08:33:41 +00:00
|
|
|
unsigned type, unsigned action, bool wraparound);
|
|
|
|
|
2018-09-17 07:57:30 +00:00
|
|
|
enum setting_type menu_setting_get_browser_selection_type(
|
|
|
|
rarch_setting_t *setting);
|
2015-10-11 11:16:38 +00:00
|
|
|
|
2020-05-11 15:07:37 +00:00
|
|
|
void setting_generic_handle_change(rarch_setting_t *setting);
|
|
|
|
|
2018-09-17 08:02:31 +00:00
|
|
|
void menu_setting_free(rarch_setting_t *setting);
|
2016-06-16 23:07:52 +00:00
|
|
|
|
2018-09-17 07:57:30 +00:00
|
|
|
bool menu_setting_ctl(
|
|
|
|
enum menu_setting_ctl_state state, void *data);
|
2016-03-18 21:16:57 +00:00
|
|
|
|
2016-06-03 03:49:46 +00:00
|
|
|
RETRO_END_DECLS
|
2014-10-12 18:22:33 +00:00
|
|
|
|
2014-09-12 03:54:58 +00:00
|
|
|
#endif
|