Skip to content

Commit

Permalink
Add guard
Browse files Browse the repository at this point in the history
  • Loading branch information
iota97 committed Jun 9, 2022
1 parent dd58923 commit 464a07a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UI/GameSettingsScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@ void GameSettingsScreen::CreateViews() {
static const char *buttonPref[] = { "Use O to confirm", "Use X to confirm" };
systemSettings->Add(new PopupMultiChoice(&g_Config.iButtonPreference, sy->T("Confirmation Button"), buttonPref, 0, 2, sy->GetName(), screenManager()));

#if !defined(MOBILE_DEVICE) || PPSSPP_PLATFORM(ANDROID)
// Search
LinearLayout *searchSettings = AddTab("GameSettingsSearch", ms->T("Search"), true);

Expand All @@ -1077,6 +1078,7 @@ void GameSettingsScreen::CreateViews() {
noSearchResults_ = searchSettings->Add(new TextView(se->T("No settings matched '%1'"), new LinearLayoutParams(Margins(20, 5))));

ApplySearchFilter();
#endif
}

UI::LinearLayout *GameSettingsScreen::AddTab(const char *tag, const std::string &title, bool isSearch) {
Expand Down

0 comments on commit 464a07a

Please sign in to comment.