Skip to content

Commit 4f65fcc

Browse files
committed
Fix UI not refreshing. Bypass TickPrecise check for developer mode. FlyingTrialFarmer requires TickPrecise.
1 parent 22fb78c commit 4f65fcc

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

SerialPrograms/Source/Controllers/ControllerSelectorWidget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ void ControllerSelectorWidget::descriptor_changed(
187187
const std::shared_ptr<const ControllerDescriptor>& descriptor
188188
){
189189
// cout << "descriptor_changed()" << endl;
190-
// QMetaObject::invokeMethod(this, [=, this]{
191-
// refresh_selection(descriptor->interface_type);
192-
// }, Qt::QueuedConnection);
190+
QMetaObject::invokeMethod(this, [=, this]{
191+
refresh_selection(descriptor->interface_type);
192+
}, Qt::QueuedConnection);
193193
}
194194
void ControllerSelectorWidget::controller_changed(
195195
ControllerType controller_type,

SerialPrograms/Source/NintendoSwitch/Controllers/SysbotBase/SysbotBase_ProController.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ ProController_SysbotBase::ProController_SysbotBase(
5050

5151
missing_feature = requirements.check_compatibility(iter->second);
5252

53+
if (PreloadSettings::instance().DEVELOPER_MODE &&
54+
missing_feature == CONTROLLER_FEATURE_STRINGS.get_string(ControllerFeature::TickPrecise)
55+
){
56+
logger.log("Bypassing Missing Requirement: " + missing_feature, COLOR_RED);
57+
missing_feature.clear();
58+
}
59+
5360
if (missing_feature.empty()){
5461
m_dispatch_thread = std::thread(&ProController_SysbotBase::thread_body, this);
5562
return;

SerialPrograms/Source/PokemonSV/Programs/Farming/PokemonSV_FlyingTrialFarmer.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ FlyingTrialFarmer_Descriptor::FlyingTrialFarmer_Descriptor()
3535
"Farm the flying trial for BP.",
3636
FeedbackType::REQUIRED,
3737
AllowCommandsWhenRunning::DISABLE_COMMANDS,
38-
{SerialPABotBase::OLD_NINTENDO_SWITCH_DEFAULT_REQUIREMENTS}
38+
{
39+
ControllerFeature::TickPrecise,
40+
ControllerFeature::NintendoSwitch_ProController,
41+
}
3942
)
4043
{}
4144
struct FlyingTrialFarmer_Descriptor::Stats : public StatsTracker{

0 commit comments

Comments
 (0)