Installer need-for-speed-high-stakes-xidi-addon

extends: need-for-speed-high-stakes
files:
- xidi: https://github.com/samuelgr/Xidi/releases/download/v5.0.0/Xidi-v5.0.0.zip
- xidi_conf: https://raw.githubusercontent.com/samuelgr/XidiGameConfigurations/refs/heads/master/GameConfigurations/Need%20for%20Speed%20-%20High%20Stakes/Xidi.ini
installer:
- extract:
    dst: $CACHE/xidi
    file: xidi
- move:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Electronic Arts/Need For Speed High
      Stakes/dinput.dll.bak
    src: $GAMEDIR/drive_c/Program Files (x86)/Electronic Arts/Need For Speed High
      Stakes/dinput.dll
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Electronic Arts/Need For Speed High
      Stakes
    src: $CACHE/xidi/Win32
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Electronic Arts/Need For Speed High
      Stakes
    src: xidi_conf
description: Install Xidi
game_slug: need-for-speed-high-stakes
gogslug: ''
humblestoreid: ''
installer_slug: need-for-speed-high-stakes-xidi-addon
name: 'Need for Speed: High Stakes'
notes: "WARNING:\r\nThis overrides some of the changes provided by the Silent Patch,\
  \ as both replace the game's dinput.dll. Use only if your controller is not supported\
  \ on the base game installer.\r\n\r\nKnown issues:\r\n- Does not work with all Controllers.\
  \ Specifically Controllers that are not natively using XInput, such as the DualShock\
  \ 4 (which is supported by Silent Patch). Should work with most Controllers marketed\
  \ as PC or Xbox however.\r\n- As of August 2026, does not work on the Steam Deck\
  \ and makes the game unplayable when starting a race. Cause unknown. Steam Deck\
  \ is supported by Silent Patch.\r\n- Once installed, Keyboard input is unavailable\
  \ in races. This is a limitation of the game when a Controller is detected and Xidi\
  \ always presents a Controller to the game to enable hot-plug functionality for\
  \ games that don't natively support it.\r\n\r\nIf your Controller is not working\
  \ or you just want to revert to Keyboard input:\r\n1. Right-click the game -> Browse\
  \ files -> drive_c/Program Files (x86)/Electronic Arts/Need For Speed High Stakes\r\
  \n2. Delete dinput.dll, dinput8.dll, winmm.dll, Xidi.32.dll, Xidi.HookModule.32.dll,\
  \ and Xidi.ini\r\n3. Rename dinput.dll.bak to dinput.dll"
runner: wine
script:
  extends: need-for-speed-high-stakes
  files:
  - xidi: https://github.com/samuelgr/Xidi/releases/download/v5.0.0/Xidi-v5.0.0.zip
  - xidi_conf: https://raw.githubusercontent.com/samuelgr/XidiGameConfigurations/refs/heads/master/GameConfigurations/Need%20for%20Speed%20-%20High%20Stakes/Xidi.ini
  installer:
  - extract:
      dst: $CACHE/xidi
      file: xidi
  - move:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Electronic Arts/Need For Speed High
        Stakes/dinput.dll.bak
      src: $GAMEDIR/drive_c/Program Files (x86)/Electronic Arts/Need For Speed High
        Stakes/dinput.dll
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Electronic Arts/Need For Speed High
        Stakes
      src: $CACHE/xidi/Win32
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Electronic Arts/Need For Speed High
        Stakes
      src: xidi_conf
slug: need-for-speed-high-stakes-xidi-addon
steamid: null
version: Xidi addon
year: 1999
{
  "game_slug": "need-for-speed-high-stakes",
  "version": "Xidi addon",
  "description": "Install Xidi",
  "notes": "WARNING:\r\nThis overrides some of the changes provided by the Silent Patch, as both replace the game's dinput.dll. Use only if your controller is not supported on the base game installer.\r\n\r\nKnown issues:\r\n- Does not work with all Controllers. Specifically Controllers that are not natively using XInput, such as the DualShock 4 (which is supported by Silent Patch). Should work with most Controllers marketed as PC or Xbox however.\r\n- As of August 2026, does not work on the Steam Deck and makes the game unplayable when starting a race. Cause unknown. Steam Deck is supported by Silent Patch.\r\n- Once installed, Keyboard input is unavailable in races. This is a limitation of the game when a Controller is detected and Xidi always presents a Controller to the game to enable hot-plug functionality for games that don't natively support it.\r\n\r\nIf your Controller is not working or you just want to revert to Keyboard input:\r\n1. Right-click the game -> Browse files -> drive_c/Program Files (x86)/Electronic Arts/Need For Speed High Stakes\r\n2. Delete dinput.dll, dinput8.dll, winmm.dll, Xidi.32.dll, Xidi.HookModule.32.dll, and Xidi.ini\r\n3. Rename dinput.dll.bak to dinput.dll",
  "name": "Need for Speed: High Stakes",
  "year": 1999,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "need-for-speed-high-stakes-xidi-addon",
  "installer_slug": "need-for-speed-high-stakes-xidi-addon",
  "script": {
    "extends": "need-for-speed-high-stakes",
    "files": [
      {
        "xidi": "https://github.com/samuelgr/Xidi/releases/download/v5.0.0/Xidi-v5.0.0.zip"
      },
      {
        "xidi_conf": "https://raw.githubusercontent.com/samuelgr/XidiGameConfigurations/refs/heads/master/GameConfigurations/Need%20for%20Speed%20-%20High%20Stakes/Xidi.ini"
      }
    ],
    "installer": [
      {
        "extract": {
          "dst": "$CACHE/xidi",
          "file": "xidi"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Electronic Arts/Need For Speed High Stakes/dinput.dll.bak",
          "src": "$GAMEDIR/drive_c/Program Files (x86)/Electronic Arts/Need For Speed High Stakes/dinput.dll"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Electronic Arts/Need For Speed High Stakes",
          "src": "$CACHE/xidi/Win32"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Electronic Arts/Need For Speed High Stakes",
          "src": "xidi_conf"
        }
      }
    ]
  }
}
Back to game