mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-25 04:06:18 +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
|
||||
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_display_name(NSString *core_id);
|
||||
|
||||
|
@ -44,19 +44,6 @@ void apple_display_alert(const char *message, const char *title)
|
||||
#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
|
||||
NSString *apple_get_core_id(const core_info_t *core)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user