From 34ab1564513f98c86d6d095a560e8a919a028dab Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Wed, 13 Jul 2022 10:54:53 -0700 Subject: [PATCH] fix patch menu presence condition --- src/ServerState.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServerState.cc b/src/ServerState.cc index 57313635..8b4aadb9 100644 --- a/src/ServerState.cc +++ b/src/ServerState.cc @@ -355,7 +355,7 @@ void ServerState::create_menus(shared_ptr config_json) { } this->main_menu.emplace_back(MainMenuItemID::DOWNLOAD_QUESTS, u"Download quests", u"Download quests", MenuItem::Flag::INVISIBLE_ON_BB); - if (!this->dol_file_index->empty()) { + if (!this->function_code_index->patch_menu_empty()) { this->main_menu.emplace_back(MainMenuItemID::PATCHES, u"Patches", u"Change game\nbehaviors", MenuItem::Flag::GC_ONLY | MenuItem::Flag::REQUIRES_SEND_FUNCTION_CALL); }