Skip to content

NFSU2 Revived v0.15.10

Choose a tag to compare

@mininxd mininxd released this 03 Nov 01:56
· 311 commits to main since this release

What's Changed in v0.15.10

Keyboard Configuration Menu Removal & Joypad-Only Controls

  • Controls Menu UI Filtering: Replaced keyboard configuration in Options -> Controls with direct Joypad Configuration. Patched the in-game Controls menu device builder (0x4ace00 / offset 0x14d756c) to skip Device 0 (Keyboard) from the menu list, ensuring Options -> Controls opens directly to Joypad Configuration and preventing crashes from entering the keyboard remapper.
  • Full In-Game Keyboard & Touch Functionality Preserved: Restored DirectInput EnumDevicesBySemantics (Method 9) in guest_input.inc and libnfsu2_android.so (0x479820) to the working v0.15.7 baseline so on-screen touch controls (nativeKey) and keyboard inputs remain fully functional during gameplay.

DirectInput Joypad Object Name Resolution & Button Labels

  • GetObjectInfo Dispatch Handler: Restored the IDirectInputDevice8::GetObjectInfo dispatch handler in libnfsu2_android.so (0x47a3f8 to umaddl x1, w0, w8, x9) and guest_input.inc so fillObject is called and returns DI_OK, properly querying and registering joypad object names.
  • In-Game Joypad Button Labels: Joypad control configuration in Options -> Controls now correctly displays button names (A, B, X, Y, LB, RB, Back, Start, LS, RS, D-pad) instead of empty strings or ---.
  • Controller Profile GUID: Restored Xbox 360 controller product GUID (0x028e045e) in padProductGuid matching known compatible gamepad profiles.

Trigger Axis DirectInput Normalization (Z-Axis)

  • Z-Axis DirectInput Descriptor: Renamed offset 8 in DirectInput object table from LT to Z-Axis and offset 20 to Z Rotation in libnfsu2_android.so (0x182328) and guest_input.inc.
  • Combined Analog Triggers: Updated publishPad() in main.cpp to combine trigger inputs onto Z-Axis (state.leftTrigger - state.rightTrigger), replicating standard PC DirectInput gamepad behavior:
    // Z: LT pushes it one way and RT the other, as DirectInput shows an Xbox pad (Z-Axis).
    const float axes[6]={state.leftX,state.leftY,state.leftTrigger-state.rightTrigger,state.rightX,state.rightY,0.f};
    setGuestPad(axes,state.buttons,state.hatX,state.hatY);

Launcher Game Language Selection.

  • Localization Override Removal: Removed forced hardcoded language strings and runtime overrides from native binaries and hooks, ensuring language selection strictly uses the game's native language assets.

Full Changelog: v0.15.9...v0.15.10