mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
(Apple) Get rid of objc_get_value_from_config
This commit is contained in:
parent
34002c0e10
commit
ba99ec92ee
@ -55,7 +55,6 @@ extern void apple_stop_iteration();
|
|||||||
|
|
||||||
// utility.m
|
// utility.m
|
||||||
extern void apple_display_alert(const char *message, const char *title);
|
extern void apple_display_alert(const char *message, const char *title);
|
||||||
extern NSString *objc_get_value_from_config(config_file_t* config, NSString* name, NSString* defaultValue);
|
|
||||||
extern NSString *apple_get_core_id(const core_info_t *core);
|
extern NSString *apple_get_core_id(const core_info_t *core);
|
||||||
extern NSString *apple_get_core_display_name(NSString *core_id);
|
extern NSString *apple_get_core_display_name(NSString *core_id);
|
||||||
|
|
||||||
|
@ -44,19 +44,6 @@ void apple_display_alert(const char *message, const char *title)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fetch a value from a config file, returning defaultValue if the value is not present
|
|
||||||
NSString* objc_get_value_from_config(config_file_t* config, NSString* name, NSString* defaultValue)
|
|
||||||
{
|
|
||||||
NSString *result;
|
|
||||||
char* data = NULL;
|
|
||||||
if (config)
|
|
||||||
config_get_string(config, name.UTF8String, &data);
|
|
||||||
|
|
||||||
result = data ? BOXSTRING(data) : defaultValue;
|
|
||||||
free(data);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Get a core ID as an NSString
|
// Get a core ID as an NSString
|
||||||
NSString *apple_get_core_id(const core_info_t *core)
|
NSString *apple_get_core_id(const core_info_t *core)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user