From 61dccff1a0be1736813a9f4d19ad30ec79d8cea2 Mon Sep 17 00:00:00 2001 From: Valiantsin Dzerakh Date: Sat, 31 Oct 2026 07:52:59 +0300 Subject: [PATCH] Say that the Xbox prompts do not follow remapped buttons The swapped letters are baked into the game's textures, fonts and messages, so a button remapped with a bind_ line or on the Controls tab keeps the old letter on screen. The menu description (English and Russian) and docs/controls.md now say so. Co-Authored-By: Claude Opus 5.5 --- docs/controls.md | 2 ++ runtime/ui_text.c | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/controls.md b/docs/controls.md index df57d17e..29f53f0d 100644 --- a/docs/controls.md +++ b/docs/controls.md @@ -35,6 +35,8 @@ Esc is unbound in the game; it opens the settings menu and releases the mouse cu `pad_layout = xbox_prompts` (*Xbox prompts (A right)* on the Controls tab) is for an Xbox pad played by position. The buttons work as with `nintendo`: the right button, labelled B, does Switch A (interact, confirm), and the bottom one, labelled A, does Switch B (run, cancel). The letters the game shows are swapped to match the labels, A with B and X with Y, so each prompt names the button to press. The other layouts leave the prompts alone: with `xbox` the Switch letters already match the labels. +The swapped letters are part of the game's textures, fonts and messages, so they follow the layout and not the bindings. A button remapped with a `bind_` line or on the Controls tab keeps the letter the game draws for it, and the prompt then names the wrong button. Use `xbox_prompts` with the default bindings. + The buttons change at once, but the game reads its UI archive and fonts once at boot, so the prompts change at the next start (the menu says *prompts change after restart*). `xbox_prompts` loads `romfs-patches-xbox` next to `romfs-index.bin` in place of `romfs-patches` (`runtime/romfs.c`, `overlay_init`): the same 60 fps patches, with the swap made from the game's own files by `tools/make_romfs_patches.py --xbox-prompts`, which the setup runs next to the plain one: - the action prompt (`DoCommand_00`) draws the letter images `Nt_KeyTexA/B/X/Y_00`, whose image data is swapped, in a diamond that names the other face buttons. The diamond's letters are text the game takes from `LayoutMsg/DoCommand_00.msbt` of each language's `Mals` archive (and the layout's own text panes behind it); both are swapped. The diamond's shape shows the button's position and stays. diff --git a/runtime/ui_text.c b/runtime/ui_text.c index cb41a2e5..7313a396 100644 --- a/runtime/ui_text.c +++ b/runtime/ui_text.c @@ -96,7 +96,8 @@ static const char *const text_en[UI_TEXT_COUNT] = { "labelled on an Xbox controller (cross on a PlayStation controller). Automatic picks " "Nintendo for controllers with Nintendo labels and Xbox for the others. Xbox prompts: " "A is the right one as with Nintendo, and the game shows the Xbox labels (B for A, A " - "for B, Y for X, X for Y); the prompts change after a restart.", + "for B, Y for X, X for Y); the prompts change after a restart. The letters are part of the " + "game's files, so a button you remap in Controls keeps the old letter on screen.", [UI_MENU_PAD_LAYOUT_AUTO] = "Automatic", [UI_MENU_PAD_LAYOUT_NINTENDO] = "Nintendo (A right)", [UI_MENU_PAD_LAYOUT_XBOX] = "Xbox (A bottom)", [UI_MENU_PAD_LAYOUT_XBOX_PROMPTS] = "Xbox prompts (A right)", [UI_MENU_PAD_LAYOUT_IN_USE] = "in use: %s", @@ -324,7 +325,9 @@ static const char *const text_ru[UI_TEXT_COUNT] = { "подписано на контроллере Xbox (крест на контроллере PlayStation). Автоматически: " "Nintendo для контроллеров с подписями Nintendo, Xbox для остальных. Подсказки Xbox: " "A справа, как в Nintendo, а игра показывает надписи Xbox (B вместо A, A вместо B, Y " - "вместо X, X вместо Y); подсказки меняются после перезапуска.", + "вместо X, X вместо Y); подсказки меняются после перезапуска. Буквы записаны в файлах " + "игры, поэтому у кнопки, переназначенной на вкладке управления, на экране остаётся " + "прежняя буква.", [UI_MENU_PAD_LAYOUT_AUTO] = "Автоматически", [UI_MENU_PAD_LAYOUT_NINTENDO] = "Nintendo (A справа)", [UI_MENU_PAD_LAYOUT_XBOX] = "Xbox (A снизу)", [UI_MENU_PAD_LAYOUT_XBOX_PROMPTS] = "Подсказки Xbox (A справа)", [UI_MENU_PAD_LAYOUT_IN_USE] = "сейчас: %s",