44 *
55 */
66
7+ #include " Common/PokemonSwSh/PokemonProgramIDs.h"
78#include " SerialPABotBase.h"
89
910namespace PokemonAutomation {
1011namespace SerialPABotBase {
1112
1213
13- const char INTERFACE_NAME[] = " SerialPABotBase" ;
1414
15+ const char NintendoSwitch_Basic[] = " NintendoSwitch-SerialPABotBase" ;
1516
17+
18+ // Feature List
1619const char * to_string (Features feature){
1720 switch (feature){
1821 case Features::TickPrecise: return " TickPrecise" ;
@@ -24,10 +27,28 @@ const char* to_string(Features feature){
2427}
2528
2629
30+ // Defaults
31+ const std::pair<std::string, std::set<std::string>> OLD_NINTENDO_SWITCH_DEFAULT_REQUIREMENTS{
32+ NintendoSwitch_Basic,
33+ {
34+ to_string (SerialPABotBase::Features::TickPrecise),
35+ to_string (SerialPABotBase::Features::NintendoSwitch_Basic),
36+ to_string (SerialPABotBase::Features::NintendoSwitch_Macros),
37+ to_string (SerialPABotBase::Features::NintendoSwitch_DateSkip),
38+ }
39+ };
40+
2741
42+ // Internal Parsing
2843std::set<std::string> program_id_to_features (uint8_t id){
2944 switch (id){
3045 case PABB_PID_PABOTBASE_12KB:
46+ return {
47+ to_string (Features::TickPrecise),
48+ to_string (Features::NintendoSwitch_Basic),
49+ to_string (Features::NintendoSwitch_Macros),
50+ // to_string(Features::NintendoSwitch_DateSkip),
51+ };
3152 case PABB_PID_PABOTBASE_31KB:
3253 return {
3354 to_string (Features::TickPrecise),
@@ -40,15 +61,6 @@ std::set<std::string> program_id_to_features(uint8_t id){
4061}
4162
4263
43- const std::pair<std::string, std::set<std::string>> OLD_SERIAL_DEFAULT{
44- SerialPABotBase::INTERFACE_NAME,
45- {
46- to_string (SerialPABotBase::Features::TickPrecise),
47- to_string (SerialPABotBase::Features::NintendoSwitch_Basic),
48- to_string (SerialPABotBase::Features::NintendoSwitch_Macros),
49- to_string (SerialPABotBase::Features::NintendoSwitch_DateSkip),
50- }
51- };
5264
5365
5466
0 commit comments