Add dock clone modes

This commit is contained in:
Baptiste MOINE committed 2026-11-13 01:41:31 +01:00
1 parent 41245dc22b
commit afc3dfe28a
3 files changed
+17 -1

No files matched your search

+4
View File
@@ -513,6 +513,10 @@ struct EmuState {
// adapter, 3 Nintendo charger; tv=0/1. --dock overrides.
std::atomic<uint8_t> dock_kind{0};
std::atomic<bool> dock_tv{true};
// A clone of the Nintendo dock: 1 (--dock nintendo:clone) answers the
// reads HOS docks with (state 0x16, 0x0B, 0x18) but not the LED or hub
// messages; 2 (nintendo:mute) answers none of the dock's own messages.
std::atomic<uint8_t> dock_clone{0};
std::atomic<uint16_t> usb_pd_voltage_mv{5000};
std::atomic<uint16_t> usb_pd_amperage_ma{1500};