File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -333,10 +333,11 @@ static INT_PTR_COMPAT CALLBACK pick_core_proc(
333333 {
334334 case WM_INITDIALOG :
335335 {
336+ const core_info_t * info = NULL ;
336337 HWND hwndList ;
337338 unsigned i ;
338- /* Add items to list. */
339339
340+ /* Add items to list. */
340341 core_info_get_list (& core_info_list );
341342 core_info_list_get_supported_cores (core_info_list ,
342343 path_get (RARCH_PATH_CONTENT ), & core_info , & list_size );
@@ -349,8 +350,12 @@ static INT_PTR_COMPAT CALLBACK pick_core_proc(
349350 SendMessage (hwndList , LB_ADDSTRING , 0 ,
350351 (LPARAM )info -> display_name );
351352 }
353+
352354 /* Select the first item in the list */
353355 SendMessage (hwndList , LB_SETCURSEL , 0 , 0 );
356+ info = (const core_info_t * )& core_info [0 ];
357+ path_set (RARCH_PATH_CORE , info -> path );
358+
354359 SetFocus (hwndList );
355360 return TRUE;
356361 }
You can’t perform that action at this time.
0 commit comments