[PR #7312] [MERGED] Repair nine rest-004 ledger citations that named no fn #7483

Closed
opened 2026-11-03 06:40:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7312
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/fix-citations-rest-004


📝 Commits (1)

  • 94aa0d9 Name the fn each rest-004 row ports

📊 Changes

1 file changed (+9 additions, -9 deletions)

View changed files

📝 tools/port_map/rest-004.tsv (+9 -9)

📄 Description

Nine rows in tools/port_map/rest-004.tsv named a where cell that port_ledger.py map-check could not resolve (no fn): bare files, a +-joined pair of files, a const name, and calls to a fn under a file it does not live in. Each now names the single function that implements the method.

row before now cites
2 OptionInstance.SliderableEnum.next crates/horizon-client-render/src/options_ui.rs crates/horizon-client-render/src/options_ui.rs::Opt::set_slider — the graphics preset is a stepped 0..3 slider, so the next value arrives as a slider value, as fromSliderValue in the row above already records
3 OptionInstance.SliderableEnum.previous crates/horizon-client-render/src/options_ui.rs crates/horizon-client-render/src/options_ui.rs::Opt::set_slider — the same slider, one step back
11 Options.maxAnisotropyValue crates/horizon-client/src/game/options.rs + horizon-client-render::gfx::set_texture_filtering crates/horizon-client-render/src/gfx.rs::sampler_anisotropy — 1 << bit, the value set_texture_filtering puts on the sampler
16 Options.getFullscreenVideoModeString crates/horizon-client-render/src/options_file.rs crates/horizon-client-input/src/window.rs::VideoMode::write — the string options.txt stores for the preferred fullscreen mode
18 Options.setModelPart crates/horizon-client-render/src/options_file.rs::MODEL_PARTS + options_ui model part keys crates/horizon-client-render/src/options_file.rs::OptionsFile::model_customisation — the seven modelPart_* values folded into the PlayerModelPart bits
90 InputQuirks.isQuitShortcutDown crates/horizon-client/src/game.rs crates/horizon-client-input/src/input.rs::is_quit_shortcut_down
96 PreeditEvent.fromSdlTextEditing crates/horizon-client/src/game.rs::ime_preedit crates/horizon-client-render/src/preedit.rs::PreeditEvent::from_sdl_text_editing — code-point caret and block split of the composing text
97 PreeditEvent.toFormattedText crates/horizon-client/src/game.rs::ime_preedit crates/horizon-client-render/src/preedit.rs::PreeditEvent::to_formatted_text
138 LocalPlayer.rideTick crates/horizon-client/src/game/boats.rs::Game::tick_riding crates/horizon-client/src/game/remote_vehicles.rs::Game::remote_ride — the keys latched into the boat's input and the seat turn that follows

Row 16's note was stale as well and is corrected with it: options.txt keeps fullscreenResolution as VideoMode::write's mode JSON, not as a monitor index, and Settings::video_mode_index reads that string back to place the Video screen's mode slider. No verdict changed: all nine keep port or inline.

Validation, against a build of upstream/main with both 26.3 jars:

$ PORT_LEDGER_OUT=/tmp/led-repair python3 tools/port_ledger.py map-check tools/port_map/rest-004.tsv
148 rows, no problems.

Proven: every cited path::fn resolves in the tree; Opt::set_slider carries the preset's 0..3 step, sampler_anisotropy is the max-anisotropy value, VideoMode::write produces the stored string, model_customisation builds the PlayerModelPart bits, and remote_ride latches the keys and turns the seat.

Not proven: that next/previous deserve inline rather than a setter of their own — this repair only made the cells resolve; the verdicts are as they were.

These cells were written before map-check was run over the verdict map, which is why a bare file, a + pair, a const name and a game.rs path for fns in preedit.rs could sit in the where column unresolved.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7312 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/fix-citations-rest-004` --- ### 📝 Commits (1) - [`94aa0d9`](https://github.com/horizon-rust/horizon/commit/94aa0d9699b89d861e84517d30bccff9f2604c4d) Name the fn each rest-004 row ports ### 📊 Changes **1 file changed** (+9 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-004.tsv` (+9 -9) </details> ### 📄 Description Nine rows in `tools/port_map/rest-004.tsv` named a `where` cell that `port_ledger.py map-check` could not resolve (`no fn`): bare files, a `+`-joined pair of files, a const name, and calls to a fn under a file it does not live in. Each now names the single function that implements the method. | row | before | now cites | | --- | --- | --- | | 2 `OptionInstance.SliderableEnum.next` | `crates/horizon-client-render/src/options_ui.rs` | `crates/horizon-client-render/src/options_ui.rs::Opt::set_slider` — the graphics preset is a stepped 0..3 slider, so the next value arrives as a slider value, as `fromSliderValue` in the row above already records | | 3 `OptionInstance.SliderableEnum.previous` | `crates/horizon-client-render/src/options_ui.rs` | `crates/horizon-client-render/src/options_ui.rs::Opt::set_slider` — the same slider, one step back | | 11 `Options.maxAnisotropyValue` | `crates/horizon-client/src/game/options.rs + horizon-client-render::gfx::set_texture_filtering` | `crates/horizon-client-render/src/gfx.rs::sampler_anisotropy` — `1 << bit`, the value `set_texture_filtering` puts on the sampler | | 16 `Options.getFullscreenVideoModeString` | `crates/horizon-client-render/src/options_file.rs` | `crates/horizon-client-input/src/window.rs::VideoMode::write` — the string options.txt stores for the preferred fullscreen mode | | 18 `Options.setModelPart` | `crates/horizon-client-render/src/options_file.rs::MODEL_PARTS + options_ui model part keys` | `crates/horizon-client-render/src/options_file.rs::OptionsFile::model_customisation` — the seven `modelPart_*` values folded into the PlayerModelPart bits | | 90 `InputQuirks.isQuitShortcutDown` | `crates/horizon-client/src/game.rs` | `crates/horizon-client-input/src/input.rs::is_quit_shortcut_down` | | 96 `PreeditEvent.fromSdlTextEditing` | `crates/horizon-client/src/game.rs::ime_preedit` | `crates/horizon-client-render/src/preedit.rs::PreeditEvent::from_sdl_text_editing` — code-point caret and block split of the composing text | | 97 `PreeditEvent.toFormattedText` | `crates/horizon-client/src/game.rs::ime_preedit` | `crates/horizon-client-render/src/preedit.rs::PreeditEvent::to_formatted_text` | | 138 `LocalPlayer.rideTick` | `crates/horizon-client/src/game/boats.rs::Game::tick_riding` | `crates/horizon-client/src/game/remote_vehicles.rs::Game::remote_ride` — the keys latched into the boat's input and the seat turn that follows | Row 16's note was stale as well and is corrected with it: `options.txt` keeps `fullscreenResolution` as `VideoMode::write`'s mode JSON, not as a monitor index, and `Settings::video_mode_index` reads that string back to place the Video screen's mode slider. No verdict changed: all nine keep `port` or `inline`. Validation, against a build of `upstream/main` with both 26.3 jars: ``` $ PORT_LEDGER_OUT=/tmp/led-repair python3 tools/port_ledger.py map-check tools/port_map/rest-004.tsv 148 rows, no problems. ``` **Proven:** every cited `path::fn` resolves in the tree; `Opt::set_slider` carries the preset's 0..3 step, `sampler_anisotropy` is the max-anisotropy value, `VideoMode::write` produces the stored string, `model_customisation` builds the PlayerModelPart bits, and `remote_ride` latches the keys and turns the seat. **Not proven:** that `next`/`previous` deserve `inline` rather than a setter of their own — this repair only made the cells resolve; the verdicts are as they were. These cells were written before `map-check` was run over the verdict map, which is why a bare file, a `+` pair, a const name and a `game.rs` path for fns in `preedit.rs` could sit in the `where` column unresolved. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7483
No description provided.