chore: fix clippy warnings and update docs to match public API
Some checks failed
CI / rust (push) Has been cancelled

Fix 9 clippy warnings across mmc5 mapper and desktop frontend.
Sync api_contract.md and architecture.md with actual public surface.
This commit is contained in:
2026-03-16 15:05:02 +03:00
parent 188444f987
commit 2878187180
4 changed files with 52 additions and 33 deletions

View File

@@ -35,8 +35,13 @@ The main public API is organized around these groups:
- `CpuBus`
- `CpuError`
- `NativeBus`
- `Ppu`
- `Apu`
- `ApuStateTail`
- `ChannelOutputs`
- High-level runtime:
- `NesRuntime`
- `RuntimeError`
- Host execution and lifecycle:
- `RuntimeHostLoop`
- `ClientRuntime`
@@ -46,12 +51,23 @@ The main public API is organized around these groups:
- `InputProvider`
- `VideoOutput`
- `AudioOutput`
- Null/stub implementations:
- `NullInput`
- `NullVideo`
- `NullAudio`
- Audio helpers:
- `AudioMixer`
- `RingBuffer`
- Timing and pacing:
- `FrameClock`
- `FramePacer`
- `PacingClock`
- `NoopClock`
- `VideoMode`
- Video constants:
- `FRAME_WIDTH`
- `FRAME_HEIGHT`
- `FRAME_RGBA_BYTES`
- Input helpers:
- `JoypadButton`
- `JoypadButtons`
@@ -59,6 +75,8 @@ The main public API is organized around these groups:
- `JOYPAD_BUTTONS_COUNT`
- `set_button_pressed`
- `button_pressed`
- State versioning:
- `SAVE_STATE_VERSION`
## Supported Client Flow