mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 10:20:51 +00:00
Add void pointer to string_list_special_new
This commit is contained in:
parent
59bc4db6dd
commit
b9febe2eed
@ -225,7 +225,7 @@ const char *audio_driver_find_ident(int idx)
|
||||
**/
|
||||
const char *config_get_audio_driver_options(void)
|
||||
{
|
||||
return string_list_special_new(STRING_LIST_AUDIO_DRIVERS);
|
||||
return string_list_special_new(STRING_LIST_AUDIO_DRIVERS, NULL);
|
||||
}
|
||||
|
||||
void find_audio_driver(void)
|
||||
|
@ -99,7 +99,7 @@ const char *audio_resampler_driver_find_ident(int idx)
|
||||
**/
|
||||
const char* config_get_audio_resampler_driver_options(void)
|
||||
{
|
||||
return string_list_special_new(STRING_LIST_AUDIO_RESAMPLER_DRIVERS);
|
||||
return string_list_special_new(STRING_LIST_AUDIO_RESAMPLER_DRIVERS, NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -80,7 +80,7 @@ const char *camera_driver_find_ident(int idx)
|
||||
**/
|
||||
const char* config_get_camera_driver_options(void)
|
||||
{
|
||||
return string_list_special_new(STRING_LIST_CAMERA_DRIVERS);
|
||||
return string_list_special_new(STRING_LIST_CAMERA_DRIVERS, NULL);
|
||||
}
|
||||
|
||||
void find_camera_driver(void)
|
||||
|
@ -151,7 +151,7 @@ const char *video_driver_find_ident(int idx)
|
||||
**/
|
||||
const char* config_get_video_driver_options(void)
|
||||
{
|
||||
return string_list_special_new(STRING_LIST_VIDEO_DRIVERS);
|
||||
return string_list_special_new(STRING_LIST_VIDEO_DRIVERS, NULL);
|
||||
}
|
||||
|
||||
void find_video_driver(void)
|
||||
|
@ -108,7 +108,7 @@ const char *input_driver_find_ident(int idx)
|
||||
**/
|
||||
const char* config_get_input_driver_options(void)
|
||||
{
|
||||
return string_list_special_new(STRING_LIST_INPUT_DRIVERS);
|
||||
return string_list_special_new(STRING_LIST_INPUT_DRIVERS, NULL);
|
||||
}
|
||||
|
||||
void find_input_driver(void)
|
||||
|
@ -81,7 +81,7 @@ const char *hid_driver_find_ident(int idx)
|
||||
**/
|
||||
const char* config_get_hid_driver_options(void)
|
||||
{
|
||||
return string_list_special_new(STRING_LIST_INPUT_HID_DRIVERS);
|
||||
return string_list_special_new(STRING_LIST_INPUT_HID_DRIVERS, NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -109,7 +109,7 @@ const char *joypad_driver_find_ident(int idx)
|
||||
**/
|
||||
const char* config_get_joypad_driver_options(void)
|
||||
{
|
||||
return string_list_special_new(STRING_LIST_INPUT_JOYPAD_DRIVERS);
|
||||
return string_list_special_new(STRING_LIST_INPUT_JOYPAD_DRIVERS, NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -73,7 +73,7 @@ const char *location_driver_find_ident(int idx)
|
||||
**/
|
||||
const char* config_get_location_driver_options(void)
|
||||
{
|
||||
return string_list_special_new(STRING_LIST_LOCATION_DRIVERS);
|
||||
return string_list_special_new(STRING_LIST_LOCATION_DRIVERS, NULL);
|
||||
}
|
||||
|
||||
void find_location_driver(void)
|
||||
|
@ -87,7 +87,7 @@ const char *menu_driver_find_ident(int idx)
|
||||
**/
|
||||
const char *config_get_menu_driver_options(void)
|
||||
{
|
||||
return string_list_special_new(STRING_LIST_MENU_DRIVERS);
|
||||
return string_list_special_new(STRING_LIST_MENU_DRIVERS, NULL);
|
||||
}
|
||||
|
||||
void find_menu_driver(void)
|
||||
|
@ -76,7 +76,7 @@ const void *record_driver_find_handle(int idx)
|
||||
**/
|
||||
const char* config_get_record_driver_options(void)
|
||||
{
|
||||
return string_list_special_new(STRING_LIST_RECORD_DRIVERS);
|
||||
return string_list_special_new(STRING_LIST_RECORD_DRIVERS, NULL);
|
||||
}
|
||||
|
||||
void find_record_driver(void)
|
||||
|
@ -39,7 +39,7 @@
|
||||
#include "audio/audio_resampler_driver.h"
|
||||
#include "record/record_driver.h"
|
||||
|
||||
const char *string_list_special_new(enum string_list_type type)
|
||||
const char *string_list_special_new(enum string_list_type type, void *data)
|
||||
{
|
||||
union string_list_elem_attr attr;
|
||||
unsigned i;
|
||||
@ -50,6 +50,8 @@ const char *string_list_special_new(enum string_list_type type)
|
||||
|
||||
attr.i = 0;
|
||||
|
||||
(void)data;
|
||||
|
||||
if (!s)
|
||||
return NULL;
|
||||
|
||||
|
@ -33,6 +33,6 @@ enum string_list_type
|
||||
STRING_LIST_CORES_NAMES
|
||||
};
|
||||
|
||||
const char *string_list_special_new(enum string_list_type type);
|
||||
const char *string_list_special_new(enum string_list_type type, void *data);
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user