mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-22 02:30:56 +00:00
Header cleanups
This commit is contained in:
parent
c46032c63a
commit
97981c7a9d
@ -22,6 +22,7 @@
|
||||
#include <compat/strl.h>
|
||||
#include <retro_miscellaneous.h>
|
||||
#include <string/stdstring.h>
|
||||
#include <string/string_list.h>
|
||||
|
||||
#include "libretro.h"
|
||||
|
||||
@ -328,24 +329,6 @@ const char *core_option_get_val(core_option_manager_t *opt, size_t idx)
|
||||
return option->vals->elems[option->index].data;
|
||||
}
|
||||
|
||||
/**
|
||||
* core_option_get_vals:
|
||||
* @opt : pointer to core option manager object.
|
||||
* @idx : idx of core option.
|
||||
*
|
||||
* Gets list of core option values from core option at index @idx.
|
||||
*
|
||||
* Returns: string list of core option values if successful, otherwise
|
||||
* NULL.
|
||||
**/
|
||||
struct string_list *core_option_get_vals(
|
||||
core_option_manager_t *opt, size_t idx)
|
||||
{
|
||||
if (!opt)
|
||||
return NULL;
|
||||
return opt->opts[idx].vals;
|
||||
}
|
||||
|
||||
void core_option_set_val(core_option_manager_t *opt,
|
||||
size_t idx, size_t val_idx)
|
||||
{
|
||||
|
@ -20,7 +20,6 @@
|
||||
#include <stddef.h>
|
||||
|
||||
#include <boolean.h>
|
||||
#include <string/string_list.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@ -119,19 +118,6 @@ const char *core_option_get_desc(core_option_manager_t *opt,
|
||||
const char *core_option_get_val(core_option_manager_t *opt,
|
||||
size_t idx);
|
||||
|
||||
/**
|
||||
* core_option_get_vals:
|
||||
* @opt : pointer to core option manager object.
|
||||
* @idx : idx of core option.
|
||||
*
|
||||
* Gets list of core option values from core option at index @idx.
|
||||
*
|
||||
* Returns: string list of core option values if successful, otherwise
|
||||
* NULL.
|
||||
**/
|
||||
struct string_list *core_option_get_vals(
|
||||
core_option_manager_t *opt, size_t idx);
|
||||
|
||||
void core_option_set_val(core_option_manager_t *opt,
|
||||
size_t idx, size_t val_idx);
|
||||
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
#include <retro_inline.h>
|
||||
#include <boolean.h>
|
||||
#include <string/string_list.h>
|
||||
|
||||
#include "libretro.h"
|
||||
#include "libretro_version_1.h"
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
#include <file/file_path.h>
|
||||
#include <string/stdstring.h>
|
||||
#include <string/string_list.h>
|
||||
|
||||
#include "../menu_driver.h"
|
||||
#include "../menu_cbs.h"
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
#include <file/file_path.h>
|
||||
#include <string/stdstring.h>
|
||||
#include <string/string_list.h>
|
||||
|
||||
#include "../menu_driver.h"
|
||||
#include "../menu_animation.h"
|
||||
|
@ -15,6 +15,7 @@
|
||||
|
||||
#include <file/file_path.h>
|
||||
#include <string/stdstring.h>
|
||||
#include <string/string_list.h>
|
||||
|
||||
#include "../menu_driver.h"
|
||||
#include "../menu_cbs.h"
|
||||
|
@ -18,6 +18,7 @@
|
||||
#include <retro_stat.h>
|
||||
#include <retro_file.h>
|
||||
#include <string/stdstring.h>
|
||||
#include <string/string_list.h>
|
||||
|
||||
#include "../menu_driver.h"
|
||||
#include "../menu_cbs.h"
|
||||
|
@ -14,6 +14,7 @@
|
||||
*/
|
||||
|
||||
#include <file/file_path.h>
|
||||
#include <string/string_list.h>
|
||||
|
||||
#include "../menu_driver.h"
|
||||
#include "../menu_cbs.h"
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
#include <boolean.h>
|
||||
#include <string/stdstring.h>
|
||||
#include <string/string_list.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef _XBOX
|
||||
|
Loading…
x
Reference in New Issue
Block a user