@@ -365,22 +365,22 @@ void Interactor::select_controller()
365365 int index = 0 ;
366366 if (all_controllers.size () != 1 ) {
367367 std::cout << " ### Select controller ###\n\n " ;
368- for (size_t i = 0 ; i < all_controllers.size (); ++i) {
369- const auto & ctrl = all_controllers[i];
370- std::string display_name = get_display_name (ctrl.name , ctrl.label );
371- std::cout << MAA_NS::utf8_to_crt (std::format (" \t {}. {}" , i + 1 , display_name));
372- if (ctrl.type == InterfaceData::Controller::Type::PlayCover && !kPlayCoverSupported ) {
373- std::cout << " (macOS only)" ;
374- }
375- if (ctrl.type == InterfaceData::Controller::Type::Gamepad && !kGamepadSupported ) {
376- std::cout << " (Windows only)" ;
377- }
378- std::cout << " \n " ;
379- if (!ctrl.description .empty ()) {
380- std::string desc_text = read_text_content (ctrl.description );
381- std::cout << " \t " << MAA_NS::utf8_to_crt (desc_text) << " \n " ;
368+ for (size_t i = 0 ; i < all_controllers.size (); ++i) {
369+ const auto & ctrl = all_controllers[i];
370+ std::string display_name = get_display_name (ctrl.name , ctrl.label );
371+ std::cout << MAA_NS::utf8_to_crt (std::format (" \t {}. {}" , i + 1 , display_name));
372+ if (ctrl.type == InterfaceData::Controller::Type::PlayCover && !kPlayCoverSupported ) {
373+ std::cout << " (macOS only)" ;
374+ }
375+ if (ctrl.type == InterfaceData::Controller::Type::Gamepad && !kGamepadSupported ) {
376+ std::cout << " (Windows only)" ;
377+ }
378+ std::cout << " \n " ;
379+ if (!ctrl.description .empty ()) {
380+ std::string desc_text = read_text_content (ctrl.description );
381+ std::cout << " \t " << MAA_NS::utf8_to_crt (desc_text) << " \n " ;
382+ }
382383 }
383- }
384384 std::cout << " \n " ;
385385 index = input (all_controllers.size ()) - 1 ;
386386 }
@@ -683,12 +683,13 @@ void Interactor::select_gamepad(const MAA_PROJECT_INTERFACE_NS::InterfaceData::C
683683 std::cout << " ### Select HWND for screencap ###\n\n " ;
684684
685685 for (size_t i = 0 ; i < matched_size; ++i) {
686- std::cout << MAA_NS::utf8_to_crt (std::format (
687- " \t {}. {}\n\t\t {}\n\t\t {}\n " ,
688- i + 1 ,
689- matched_config.at (i).hwnd ,
690- MAA_NS::from_u16 (matched_config.at (i).class_name ),
691- MAA_NS::from_u16 (matched_config.at (i).window_name )));
686+ std::cout << MAA_NS::utf8_to_crt (
687+ std::format (
688+ " \t {}. {}\n\t\t {}\n\t\t {}\n " ,
689+ i + 1 ,
690+ matched_config.at (i).hwnd ,
691+ MAA_NS::from_u16 (matched_config.at (i).class_name ),
692+ MAA_NS::from_u16 (matched_config.at (i).window_name )));
692693 }
693694 std::cout << " \n " ;
694695
0 commit comments