diff --git a/src/game_config_game.cpp b/src/game_config_game.cpp index cb23653170..b2e753a5d7 100644 --- a/src/game_config_game.cpp +++ b/src/game_config_game.cpp @@ -106,8 +106,11 @@ void Game_ConfigGame::LoadFromArgs(CmdlineParser& cp) { patch_key_patch.Set(true); } else if (v == "rpg2k3-cmds" || v == "rpg2k3-commands") { patch_rpg2k3_commands.Set(true); - } else if (v == "direct-menu") { - patch_direct_menu.Set(true); + } else if (v.rfind("direct-menu=") == 0) { + int num = static_cast(std::strtol(v.substr(12).c_str(), nullptr, 0)); + if (num > 0) { + patch_direct_menu.Set(num); + } } } patch_override = true; diff --git a/src/player.cpp b/src/player.cpp index 02260f498b..1576ebdd1d 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -1403,7 +1403,8 @@ Engine options: pic-unlock - Pictures are not blocked by messages rpg2k3-cmds - Support all RPG Maker 2003 event commands in any version of the engine - direct-menu - Directly access subscreens of default menu + direct-menu=[var-id] + - Directly access subscreens of default menu --no-patch Disable all engine patches. --project-path PATH Instead of using the working directory, the game in PATH is used.