Add a text speed setting for the game's message windows on 1.1.1.

The patch set text_speed scales the typewriter speed of a message the game lets the player skip (fast, three times as
fast, its scripted waits as long) or runs the game's own skip on the first frame of each page (instant). Messages the
game marks unskippable, such as those that turn their page on a timer, keep the game's speed. The setting is live and
has a row on the Game tab in all four menu languages; with it at normal the set is off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-13 00:52:48 -05:00
parent e89cc4d430
commit 2bbdb25de7
12 changed files with 369 additions and 2 deletions

View File

@@ -19,6 +19,7 @@
#include "ov.h"
#include "platform/platform.h"
#include "sprint.h"
#include "text_speed.h"
typedef struct { int64_t sampling; uint64_t buttons; int32_t lx, ly, rx, ry; uint32_t attributes, pad; } NpadState;
typedef struct { int64_t sampling; int32_t x, y, dx, dy, wx, wy; uint32_t buttons, attributes; } MouseState;
@@ -103,6 +104,7 @@ static void npad_states(Cpu *c, uint32_t want) {
dbg_tick(c); // the debug menu's changes to the game, between two of its frames (debug_tools.c)
if (live) dbg_pad(&s.buttons, &s.lx, &s.ly, &s.rx, &s.ry); // its free camera takes the sticks while it flies
if (live) sprint_pad(&s.buttons); // the sprint button's presses, kept from the game during gameplay (sprint.c)
if (live) text_speed_poll(); // the text_speed setting onto the patch page (text_speed.c)
*out = s;
ret_x(c, 1);
}