mirror of
https://github.com/Creased/RCM-Emulator.git
synced 2026-12-06 02:48:11 +01:00
Add dock clone modes
This commit is contained in:
1 parent
41245dc22b
commit
afc3dfe28a
3 files changed
+17
-1
No files matched your search
@@ -344,7 +344,10 @@ int main(int argc, char *argv[]) {
|
||||
} else if (strcmp(argv[i], "--dock") == 0 && i + 1 < argc) {
|
||||
// What is on the USB-C port. Same contract as --oem: overrides
|
||||
// the ini. "nintendo", "thirdparty" (Ugreen-style), "charger",
|
||||
// "none"; append ":notv" for a dock with nothing on its HDMI.
|
||||
// "none"; append ":notv" for a dock with nothing on its HDMI,
|
||||
// ":clone" for one that answers the reads HOS docks with but
|
||||
// not the LED or hub messages, ":mute" for one that answers
|
||||
// none of the Nintendo dock's own messages.
|
||||
const char *d = argv[++i];
|
||||
uint8_t k = 0xFF;
|
||||
if (!strncmp(d, "nintendo", 8)) k = 1;
|
||||
@@ -357,6 +360,7 @@ int main(int argc, char *argv[]) {
|
||||
}
|
||||
state.dock_kind = k;
|
||||
state.dock_tv = strstr(d, ":notv") == nullptr;
|
||||
state.dock_clone = strstr(d, ":mute") ? 2 : strstr(d, ":clone") ? 1 : 0;
|
||||
printf("[emu] Dock: %s%s [overrides ini]\n", d, "");
|
||||
} else if (strcmp(argv[i], "--oem") == 0 && i + 1 < argc) {
|
||||
const char *oem = argv[++i];
|
||||
|
||||
Reference in new issue
Block a user