From 464a07abb7507a6bc255687dd3f83ff5340e8e02 Mon Sep 17 00:00:00 2001 From: iota97 Date: Thu, 9 Jun 2022 11:14:48 +0200 Subject: [PATCH] Add guard --- UI/GameSettingsScreen.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 3e39d325d9..dd5b94d8f8 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -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); @@ -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) {