File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -333,10 +333,11 @@ static INT_PTR_COMPAT CALLBACK pick_core_proc(
333
333
{
334
334
case WM_INITDIALOG :
335
335
{
336
+ const core_info_t * info = NULL ;
336
337
HWND hwndList ;
337
338
unsigned i ;
338
- /* Add items to list. */
339
339
340
+ /* Add items to list. */
340
341
core_info_get_list (& core_info_list );
341
342
core_info_list_get_supported_cores (core_info_list ,
342
343
path_get (RARCH_PATH_CONTENT ), & core_info , & list_size );
@@ -349,8 +350,12 @@ static INT_PTR_COMPAT CALLBACK pick_core_proc(
349
350
SendMessage (hwndList , LB_ADDSTRING , 0 ,
350
351
(LPARAM )info -> display_name );
351
352
}
353
+
352
354
/* Select the first item in the list */
353
355
SendMessage (hwndList , LB_SETCURSEL , 0 , 0 );
356
+ info = (const core_info_t * )& core_info [0 ];
357
+ path_set (RARCH_PATH_CORE , info -> path );
358
+
354
359
SetFocus (hwndList );
355
360
return TRUE;
356
361
}
You can’t perform that action at this time.
0 commit comments