Skip to content

DOR2 Static Recomp v0.1.7 (controller profile + memory card hotfix)

Choose a tag to compare

@Spaced1127 Spaced1127 released this 16 Nov 11:56
· 7 commits to main since this release

DOR2 Static Recomp v0.1.7 (hotfix: controller profile + memory card)

Hotfix for v0.1.5. Two defects: Xbox pads that could end up with no input at all
(plus face-button/D-pad misclassification on PS3/PS2/generic pads), and a
memory-card slot that defaulted to the GCI folder instead of a real raw card.
No game data, no emulator-core change, no module recompile.

1. Controllers

Xbox controllers not working at all

Cause. v0.1.5 rewrote Config\GCPadNew.ini on every boot from live SDL
detection, and when no pad had been enumerated yet it wrote the keyboard
profile over the real one. An Xbox pad that is switched on after the game
starts, is asleep, or is still pairing at boot therefore lost its controller
profile and the game had no pad input. v0.1.4 left the profile untouched.

Fix.

  • The profile is only rewritten when a pad is actually present: no pad
    detected at boot keeps the existing profile (logged as profile=kept). The
    keyboard fallback is only written on a fresh install with nothing to preserve,
    or when the keyboard layout is requested explicitly.
  • Device fallback: if the saved controller1= device string no longer
    matches a connected pad, the first connected SDL gamepad is used instead of
    leaving the profile pointing at a device that is gone.
  • The runner waits up to 0.8 s for a pad to enumerate first (Bluetooth pads and
    sleeping Xbox pads).
  • SDL hint parity: the layout is read from SDL's own resolved mapping, so the
    DB's per-pad hints (including
    hint:!SDL_GAMECONTROLLER_USE_BUTTON_LABELS on the Nintendo/8BitDo rows) are
    applied by SDL before this port sees the binding. There is no separate hint
    table here to drift out of sync.

Face buttons / D-pad swapped on non-8BitDo pads

The v0.1.5 rule "SDL a index > b index means Nintendo layout" applied to
every pad; 219 rows in SDL's controller DB have a > b, including PS3, PS2,
generic SNES clones and arcade sticks (swapped A/B + X/Y, mirrored PS3 D-pads).
The rule is now scoped to 8BitDo (vendor 0x2DC8), so the v0.1.5 8BitDo
Nintendo-mode fix is unchanged; Microsoft (0x045E), Sony (0x054C) and Valve
(0x28DE) are hard-guarded to the standard layout.

DualSense / DualSense Edge D-pad is no longer mirrored: the left/right
correction now only applies to hat-bound D-pads (the only ones Dolphin's
Pad W/Pad E can read). Button-bound D-pads such as the PlayStation rows
(dpleft:b7,dpright:b5) are left alone, so the Edge and DualSense D-pads stay
normal and PS3-style pads stopped being mirrored.

Elite Series 2 product ids added: the Elite/standard guard list now covers
045E:02E3, 0B00, 0B05, 0B12, 0B13, 0B20, 0B22 (plus every other
Microsoft 045E pad via the vendor guard).

2. Memory card (slot A raw, slot B empty)

Cause. Slot A was never configured, so it kept Dolphin's default (GCI
folder, type 8), which needs GC/<region>/Card A; on a fresh user dir the
boot-time card probe could stall at "checking memory card in slot A".

Fix (shared pattern with Aggressive Inline).

  • Config/Dolphin.ini now carries [Core] SlotA = 1 (raw card) and
    SlotB = 255 (none) - never 0, which is the Dummy device and stops the game
    with "THE DEVICE IN SLOT B IS NOT SUPPORTED".
  • Runtime::Create writes those keys and forces them in the live config layer,
    then calls UICommon::CreateDirectories() before UICommon::Init()
    (DolphinQt order), so GC/USA, GC/EUR, GC/JAP exist before the EXI bus
    resolves the card path. This runs for every launch, including RecompLauncher
    installs that never open the settings GUI.
  • Migration for existing installs: the two keys are force-written every boot
    (overwrite, not insert-only), so an install whose Dolphin.ini still says
    SlotA = 8 / SlotB = 0 is corrected on the next launch without deleting
    anything. Existing GC\<region>\Card A\*.gci saves are left on disk (the raw
    card starts empty unless a Dolphin .raw card is copied in).
  • The RecompLauncher manifest seeds the same two keys (ensure/always/new)
    for launcher-only installs.

Result. A fresh user dir now gets GC/MemoryCardA.<region>.raw,
16,777,216 bytes, and the game writes its save into it.

Savestate caveat. Savestates store the raw card bytes and the EXI device
type. A state made while slot A was the GCI folder restores the folder device,
so that session writes GC/<region>/Card A/*.gci even with SlotA=1. Verified:
loading work/states/boot-static.sav produced both the raw card and the
.gci folder write. Use a fresh boot (not an old state) when testing cards.

Diagnostics

controller: name="<device>" guid=<32-hex> vid=<vid> pid=<pid> layout=<...> dpad=<normal|swapped> source=<sdl|keyboard>
controller:   sdl_mapping=<SDL binding string>
controller: profile=<kept|generated> (<device>) layout=<layout> dpad=<dpad>
[memcard] slot A=raw card, slot B=none
[memcard] effective slot A=1 slot B=255 (1=raw card, 255=none)

DOR2RecompRunner.exe --list-controllers prints the controller lines without
starting the game.

Verified

  • Layout matrix (scripts\test-controller-matrix.ps1, real detection +
    generation against the shipped SDL 3.4.4 DB): 37 cases PASS - Xbox 360/One/
    Series/Elite S1/S2, DualSense/Edge (USB runtime + BT), DualShock 4, Switch Pro,
    Joy-Con, 8BitDo Pro 2/SN30/SF30/Zero (Nintendo) and Ultimate/2C/64/M30
    (standard), PS3/PS2/HORI, keyboard; plus generated-profile A/B/D-pad checks.
  • python tools\test_controller_layouts.py PASS; native frontend_config_test
    exit 0.
  • Runner on a hidden desktop, three boots (scripts\test-controller-profile.ps1):
    planted Xbox profile + no pad -> preserved, no keyboard write; fresh install ->
    keyboard fallback; explicit keyboard -> keyboard. All booted.
  • Physical DualSense (BT): layout=standard dpad=normal, profile generated.
  • Memory card, fresh user dir: GC/USA|EUR|JAP created, [memcard] effective slot A=1 slot B=255, GC/MemoryCardA.USA.raw = 16,777,216 bytes.
  • Save write: card directory (primary + backup) contains the game's save entry
    GW2E / 78 / /wmed_sys. Card SHA after that boot
    1E2860E5EB006EB5…DEA52983; a second boot with the same card left the SHA
    byte-identical (no re-create, no Card A folder), i.e. the existing save is
    read and accepted rather than replaced.
  • Staged v0.1.7 zip boots from its own folder and creates the same card.
  • Final artifact boot smoke (expanded zip, VISIBLE window, JIT, automation
    status.txt): booted=1, fps=59.9408, vps=59.9401, speed=1,
    frame_count=2853, present_count=5847; graceful command=stop exit
    (last_command=stop.txt); card GC/MemoryCardA.USA.raw 16,777,216 bytes,
    SHA 10801D3C75CB3CB13E475662EBB3CE819604F4779BB8E9F4D68CDD6B941E1905
    (+ SRAM.raw 68 bytes, expected).
  • Controller layout is derived from SDL's resolved mapping, so SDL's
    hint:!SDL_GAMECONTROLLER_USE_BUTTON_LABELS rows are already honoured by SDL
    before this port sees them - there is no separate per-pad hint table here.

Not verified: the in-game Load path. I did not drive the frontend
"Save & Load -> Load" menu by script, so save -> load through the game's own menu
is inferred from the unchanged card across boots (the game reads and accepts its
existing save instead of recreating it), not shown on screen. Xbox hardware was
not available either: that family is covered by the DB matrix plus the vendor
guard, with one live Xbox pad report from a player. Pads should confirm with the
startup controller: line.

Send us your controller line

If a pad still misbehaves, run DOR2RecompRunner.exe --list-controllers (no game
starts) or copy the startup lines from Logs\ModernGekko.log:

controller: name="<device>" guid=<32-hex> vid=<vid> pid=<pid> layout=<...> dpad=<normal|swapped> source=<sdl|keyboard>
controller:   sdl_mapping=<SDL binding string>

That single line (name + GUID + layout + mapping) is enough to add the exact GUID
variant to the offline matrix before changing any rule.

Package

  • dist\DOR2StaticRecomp-v0.1.7-Windows-x64.zip
  • SHA-256 151206e5366d9acd927f06aab553d4b9650fd7a18d82d40038532250edf96c55
  • Game-data scan clean (no disc/DOL/save/state/texture files, no files/ or
    Game/ tree); manifest validates (0 errors); staged exes 0.1.7.0; expanded-zip
    boot smoke: 59.9408 fps / 59.9401 vps / speed 1, graceful stop, card created.

Upgrading

Nothing to do. Players left on a keyboard profile by v0.1.5 should boot once with
the pad switched on (or delete Config\GCPadNew.ini). Existing saves on the old
GCI folder remain in GC\<region>\Card A\; the new raw card starts empty unless
you copy a Dolphin .raw card in.

Superseded

v0.1.6 was staged (controller fix only) and never published; v0.1.7 contains it
plus the memory-card fix.