mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-26 21:36:26 +00:00
(OSX) Kill off core list combobox code - Creating the NSComboBox for available cores will be done differently under the presumption that RetroArch will always
be running - no need for a cached list to keep around
This commit is contained in:
parent
0132581ebc
commit
74c5d5d1d8
@ -147,23 +147,6 @@ static char** waiting_argv;
|
||||
|
||||
self.settingsWindow = [[[NSWindowController alloc] initWithWindowNibName:BOXSTRING("Settings")] autorelease];
|
||||
|
||||
// Warn if there are no cores present
|
||||
core_info_set_core_path();
|
||||
const core_info_list_t* core_list = (const core_info_list_t*)core_info_list_get();
|
||||
|
||||
// Create core select list
|
||||
NSComboBox* cb = (NSComboBox*)[[self.coreSelectSheet contentView] viewWithTag:1];
|
||||
|
||||
for (size_t i = 0; core_list && i < core_list->count; i ++)
|
||||
{
|
||||
NSString* desc = (NSString*)BOXSTRING(core_list->list[i].display_name);
|
||||
#if defined(MAC_OS_X_VERSION_10_6)
|
||||
/* FIXME - Rewrite this so that this is no longer an associated object - requires ObjC 2.0 runtime */
|
||||
objc_setAssociatedObject(desc, associated_core_key, BOXSTRING(core_list->list[i].path), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
|
||||
#endif
|
||||
[cb addItemWithObjectValue:desc];
|
||||
}
|
||||
|
||||
apple_run_core(waiting_argc, waiting_argv);
|
||||
|
||||
waiting_argc = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user