Installer resident-evil-gog

files:
- installer: N/A:Select the EXE downloaded from GOG.
game:
  arch: win64
  exe: $INSTALLDIR/ResidentEvil.exe
  launch_configs:
  - exe: dxcfg.exe
    name: DirectX Wrapper Configuration
    working_dir: $GAMEDIR/$INSTALLDIR
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- task:
    args: /SP- /SUPPRESSMSGBOXES /NOCANCEL
    description: Running Setup, please wait...
    executable: installer
    name: wineexec
- task:
    arch: win64
    description: Set ddraw to native,builtin
    key: ddraw
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DllOverrides
    prefix: $GAMEDIR
    type: REG_SZ
    value: native,builtin
- execute:
    command: '[ -f "$GAMEDIR/$INSTALLDIR/Biohazard.exe" ] && mv "$GAMEDIR/$INSTALLDIR/Biohazard.exe"
      "$GAMEDIR/$INSTALLDIR/ResidentEvil.exe" || echo "No Biohazard.exe detected"'
    description: Renames Biohazard.exe to ResidentEvil.exe if it exists
variables:
  INSTALLDIR: drive_c/GOG Games/Resident Evil
wine:
  overrides:
    ddraw.dll: n,b
description: ''
game_slug: resident-evil
gogslug: resident_evil_bundle
humblestoreid: ''
installer_slug: resident-evil-gog
name: Resident Evil
notes: "- Prerendered Cutscenes are sound only with video missing\r\n\r\n- Renames\
  \ the Biohazard.exe of the japanese GOG version to ResidentEvil.exe as I do not\
  \ know how to configure placeholder .exe - this might lead to problems when trying\
  \ to install mods if those expect Biohazard.exe . It can be changed manually afterwards\
  \ to be Biohazard again if the player so desires."
runner: wine
script:
  files:
  - installer: N/A:Select the EXE downloaded from GOG.
  game:
    arch: win64
    exe: $INSTALLDIR/ResidentEvil.exe
    launch_configs:
    - exe: dxcfg.exe
      name: DirectX Wrapper Configuration
      working_dir: $GAMEDIR/$INSTALLDIR
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      description: Creating Wine prefix
      name: create_prefix
      prefix: $GAMEDIR
  - task:
      args: /SP- /SUPPRESSMSGBOXES /NOCANCEL
      description: Running Setup, please wait...
      executable: installer
      name: wineexec
  - task:
      arch: win64
      description: Set ddraw to native,builtin
      key: ddraw
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Wine\DllOverrides
      prefix: $GAMEDIR
      type: REG_SZ
      value: native,builtin
  - execute:
      command: '[ -f "$GAMEDIR/$INSTALLDIR/Biohazard.exe" ] && mv "$GAMEDIR/$INSTALLDIR/Biohazard.exe"
        "$GAMEDIR/$INSTALLDIR/ResidentEvil.exe" || echo "No Biohazard.exe detected"'
      description: Renames Biohazard.exe to ResidentEvil.exe if it exists
  variables:
    INSTALLDIR: drive_c/GOG Games/Resident Evil
  wine:
    overrides:
      ddraw.dll: n,b
slug: resident-evil-gog
steamid: 613140
version: GOG
year: 1996
{
  "game_slug": "resident-evil",
  "version": "GOG",
  "description": "",
  "notes": "- Prerendered Cutscenes are sound only with video missing\r\n\r\n- Renames the Biohazard.exe of the japanese GOG version to ResidentEvil.exe as I do not know how to configure placeholder .exe - this might lead to problems when trying to install mods if those expect Biohazard.exe . It can be changed manually afterwards to be Biohazard again if the player so desires.",
  "name": "Resident Evil",
  "year": 1996,
  "steamid": 613140,
  "gogslug": "resident_evil_bundle",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "resident-evil-gog",
  "installer_slug": "resident-evil-gog",
  "script": {
    "files": [
      {
        "installer": "N/A:Select the EXE downloaded from GOG."
      }
    ],
    "game": {
      "arch": "win64",
      "exe": "$INSTALLDIR/ResidentEvil.exe",
      "launch_configs": [
        {
          "exe": "dxcfg.exe",
          "name": "DirectX Wrapper Configuration",
          "working_dir": "$GAMEDIR/$INSTALLDIR"
        }
      ],
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "description": "Creating Wine prefix",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "args": "/SP- /SUPPRESSMSGBOXES /NOCANCEL",
          "description": "Running Setup, please wait...",
          "executable": "installer",
          "name": "wineexec"
        }
      },
      {
        "task": {
          "arch": "win64",
          "description": "Set ddraw to native,builtin",
          "key": "ddraw",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "native,builtin"
        }
      },
      {
        "execute": {
          "command": "[ -f \"$GAMEDIR/$INSTALLDIR/Biohazard.exe\" ] && mv \"$GAMEDIR/$INSTALLDIR/Biohazard.exe\" \"$GAMEDIR/$INSTALLDIR/ResidentEvil.exe\" || echo \"No Biohazard.exe detected\"",
          "description": "Renames Biohazard.exe to ResidentEvil.exe if it exists"
        }
      }
    ],
    "variables": {
      "INSTALLDIR": "drive_c/GOG Games/Resident Evil"
    },
    "wine": {
      "overrides": {
        "ddraw.dll": "n,b"
      }
    }
  }
}
Back to game