File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
SerialPrograms/Source/NintendoSwitch/Programs/FastCodeEntry Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -286,9 +286,8 @@ void keyboard_enter_code(
286286
287287
288288 ConsoleType console_type = console.state ().console_type ();
289-
290289 if (console_type == ConsoleType::Unknown){
291- console.log (" Unknown Switch type. Try to detect." );
290+ console.log (" Unknown Switch type. Try to detect." , COLOR_ORANGE );
292291 console_type = detect_console_type_from_in_game (console, context);
293292 }
294293 bool switch2;
Original file line number Diff line number Diff line change 99#include " NintendoSwitch/NintendoSwitch_Settings.h"
1010#include " NintendoSwitch/Commands/NintendoSwitch_Commands_Superscalar.h"
1111#include " NintendoSwitch/Options/NintendoSwitch_CodeEntrySettingsOption.h"
12+ #include " NintendoSwitch/Inference/NintendoSwitch_ConsoleTypeDetector.h"
1213#include " NintendoSwitch_CodeEntryTools.h"
1314#include " NintendoSwitch_NumberCodeEntry.h"
1415
@@ -193,6 +194,10 @@ void numberpad_enter_code(
193194
194195
195196 ConsoleType console_type = console.state ().console_type ();
197+ if (console_type == ConsoleType::Unknown){
198+ console.log (" Unknown Switch type. Try to detect." , COLOR_ORANGE);
199+ console_type = detect_console_type_from_in_game (console, context);
200+ }
196201 bool switch2;
197202 if (is_switch1 (console_type)){
198203 switch2 = false ;
You can’t perform that action at this time.
0 commit comments