Skip to content

Commit a2eccab

Browse files
committed
Add option for Switch type.
1 parent 1cc8814 commit a2eccab

File tree

4 files changed

+52
-1
lines changed

4 files changed

+52
-1
lines changed

SerialPrograms/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,7 @@ file(GLOB MAIN_SOURCES
973973
Source/NintendoSwitch/Options/NintendoSwitch_FriendCodeListOption.h
974974
Source/NintendoSwitch/Options/NintendoSwitch_GoHomeWhenDoneOption.cpp
975975
Source/NintendoSwitch/Options/NintendoSwitch_GoHomeWhenDoneOption.h
976+
Source/NintendoSwitch/Options/NintendoSwitch_ModelType.h
976977
Source/NintendoSwitch/Options/NintendoSwitch_StartInGripMenuOption.h
977978
Source/NintendoSwitch/Options/TurboMacroTable.cpp
978979
Source/NintendoSwitch/Options/TurboMacroTable.h

SerialPrograms/Source/NintendoSwitch/Controllers/SysbotBase/SysbotBase3_ProController.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ProController_SysbotBase3 final :
2727
public:
2828
using ContextType = ProControllerContext;
2929

30-
static constexpr size_t QUEUE_SIZE = 128;
30+
static constexpr size_t QUEUE_SIZE = 256;
3131

3232

3333
public:

SerialPrograms/Source/NintendoSwitch/DevPrograms/TestProgramSwitch.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@
121121
#include "PokemonSV/Inference/Picnics/PokemonSV_SandwichHandDetector.h"
122122
#include "PokemonSwSh/MaxLair/Inference/PokemonSwSh_MaxLair_Detect_PokemonSwapMenu.h"
123123
#include "CommonTools/Images/ImageFilter.h"
124+
#include "NintendoSwitch/Options/NintendoSwitch_ModelType.h"
124125

125126

126127
#include <QPixmap>
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/* Model Type
2+
*
3+
* From: https://github.com/PokemonAutomation/
4+
*
5+
*/
6+
7+
#ifndef PokemonAutomation_NintendoSwitch_ModelType_H
8+
#define PokemonAutomation_NintendoSwitch_ModelType_H
9+
10+
#include "Common/Cpp/Options/EnumDropdownOption.h"
11+
12+
namespace PokemonAutomation{
13+
namespace NintendoSwitch{
14+
15+
16+
17+
enum class ConsoleModel{
18+
Switch1,
19+
Switch2_International,
20+
Switch2_JapanLocked,
21+
};
22+
23+
24+
class ConsoleModelOption : public EnumDropdownOption<ConsoleModel>{
25+
public:
26+
ConsoleModelOption()
27+
: EnumDropdownOption<ConsoleModel>(
28+
std::move("Console Type:"),
29+
{
30+
{ConsoleModel::Switch1, "switch1", "Switch 1 + OLED."},
31+
{ConsoleModel::Switch2_International, "switch2", "Switch 2 (international)"},
32+
{ConsoleModel::Switch2_JapanLocked, "switch2-japan", "Switch 2 (Japan-locked)"},
33+
},
34+
LockMode::UNLOCK_WHILE_RUNNING,
35+
ConsoleModel::Switch1
36+
)
37+
{}
38+
39+
private:
40+
};
41+
42+
43+
44+
45+
46+
47+
}
48+
}
49+
#endif

0 commit comments

Comments
 (0)