Installer toy-story-2-buzz-lightyear-to-cd

files:
- fix: https://github.com/cheeseandcereal/ToyStory2Fix/releases/latest/download/ToyStory2Fix.zip
- d7vk: https://github.com/WinterSnowfall/d7vk/releases/download/v2.4/d7vk-v2.4.zip
game:
  arch: win64
  exe: $GAMEDIR/drive_c/ToyStory2/toy2.exe
  prefix: $GAMEDIR
  working_dir: $GAMEDIR/drive_c/ToyStory2
installer:
- insert-disc:
    message: Mount the Toy Story 2 PC disc or ISO, then use Browse to select its root
      folder.
    requires: Setup/Toy2/HD/toy2.exe
- task:
    args: '"Setup\Toy2\HD" "C:\ToyStory2" /E /I /H /Y'
    description: Preparing Wine and copying game files...
    executable: xcopy.exe
    name: wineexec
    working_dir: $DISC
- task:
    args: '"Setup\Toy2\CD" "C:\ToyStory2\CD" /E /I /H /Y'
    description: Copying music and videos...
    executable: xcopy.exe
    name: wineexec
    working_dir: $DISC
- extract:
    dst: $GAMEDIR/drive_c/ToyStory2
    file: fix
- extract:
    dst: $CACHE/d7vk
    file: d7vk
- copy:
    dst: $GAMEDIR/drive_c/ToyStory2
    src: $CACHE/d7vk/x32/ddraw.dll
- write_file:
    content: 'd3d9.maxFrameRate = 60

      ddraw.legacySurfaceDimensions = False

      '
    file: $GAMEDIR/drive_c/ToyStory2/dxvk.conf
- task:
    description: Configuring the game registry...
    key: path
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\TravellersTalesToyStory2
    value: C:\\ToyStory2\\data\\
- task:
    key: cdpath
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\TravellersTalesToyStory2
    value: C:\\ToyStory2\\CD\\
- task:
    key: Managed
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\AppDefaults\toy2.exe\X11 Driver
    value: Y
- task:
    app: amstream quartz
    description: Installing Microsoft AMStream and Quartz for video playback...
    name: winetricks
wine:
  d3d_extras: false
  dgvoodoo2: false
  dxvk: false
  dxvk_nvapi: false
  overrides:
    ddraw: n,b
    dsound: n,b
    quartz: n,b
    winegstreamer: disabled
  vkd3d: false
description: Includes ToyStory2Fix and D7VK
game_slug: toy-story-2-buzz-lightyear-to-the-rescue
gogslug: ''
humblestoreid: ''
installer_slug: toy-story-2-buzz-lightyear-to-cd
name: 'Toy Story 2: Buzz Lightyear to the Rescue!'
notes: "Fullscreen [default] or windowed mode can be configured with custom --fullscreen\
  \ and --windowed arguments. Custom resolutions can be picked for either mode, with\
  \ -w and -h flags, i.e. --windowed -w 1024 -h 768\r\n\r\nToyStory2Fix options can\
  \ be adjusted in the ini at C:\\ToyStory2\\scripts\\ToyStory2Fix.ini in the wine\
  \ prefix"
runner: wine
script:
  files:
  - fix: https://github.com/cheeseandcereal/ToyStory2Fix/releases/latest/download/ToyStory2Fix.zip
  - d7vk: https://github.com/WinterSnowfall/d7vk/releases/download/v2.4/d7vk-v2.4.zip
  game:
    arch: win64
    exe: $GAMEDIR/drive_c/ToyStory2/toy2.exe
    prefix: $GAMEDIR
    working_dir: $GAMEDIR/drive_c/ToyStory2
  installer:
  - insert-disc:
      message: Mount the Toy Story 2 PC disc or ISO, then use Browse to select its
        root folder.
      requires: Setup/Toy2/HD/toy2.exe
  - task:
      args: '"Setup\Toy2\HD" "C:\ToyStory2" /E /I /H /Y'
      description: Preparing Wine and copying game files...
      executable: xcopy.exe
      name: wineexec
      working_dir: $DISC
  - task:
      args: '"Setup\Toy2\CD" "C:\ToyStory2\CD" /E /I /H /Y'
      description: Copying music and videos...
      executable: xcopy.exe
      name: wineexec
      working_dir: $DISC
  - extract:
      dst: $GAMEDIR/drive_c/ToyStory2
      file: fix
  - extract:
      dst: $CACHE/d7vk
      file: d7vk
  - copy:
      dst: $GAMEDIR/drive_c/ToyStory2
      src: $CACHE/d7vk/x32/ddraw.dll
  - write_file:
      content: 'd3d9.maxFrameRate = 60

        ddraw.legacySurfaceDimensions = False

        '
      file: $GAMEDIR/drive_c/ToyStory2/dxvk.conf
  - task:
      description: Configuring the game registry...
      key: path
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\TravellersTalesToyStory2
      value: C:\\ToyStory2\\data\\
  - task:
      key: cdpath
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\TravellersTalesToyStory2
      value: C:\\ToyStory2\\CD\\
  - task:
      key: Managed
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Wine\AppDefaults\toy2.exe\X11 Driver
      value: Y
  - task:
      app: amstream quartz
      description: Installing Microsoft AMStream and Quartz for video playback...
      name: winetricks
  wine:
    d3d_extras: false
    dgvoodoo2: false
    dxvk: false
    dxvk_nvapi: false
    overrides:
      ddraw: n,b
      dsound: n,b
      quartz: n,b
      winegstreamer: disabled
    vkd3d: false
slug: toy-story-2-buzz-lightyear-to-cd
steamid: null
version: CD
year: 1999
{
  "game_slug": "toy-story-2-buzz-lightyear-to-the-rescue",
  "version": "CD",
  "description": "Includes ToyStory2Fix and D7VK",
  "notes": "Fullscreen [default] or windowed mode can be configured with custom --fullscreen and --windowed arguments. Custom resolutions can be picked for either mode, with -w and -h flags, i.e. --windowed -w 1024 -h 768\r\n\r\nToyStory2Fix options can be adjusted in the ini at C:\\ToyStory2\\scripts\\ToyStory2Fix.ini in the wine prefix",
  "name": "Toy Story 2: Buzz Lightyear to the Rescue!",
  "year": 1999,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "toy-story-2-buzz-lightyear-to-cd",
  "installer_slug": "toy-story-2-buzz-lightyear-to-cd",
  "script": {
    "files": [
      {
        "fix": "https://github.com/cheeseandcereal/ToyStory2Fix/releases/latest/download/ToyStory2Fix.zip"
      },
      {
        "d7vk": "https://github.com/WinterSnowfall/d7vk/releases/download/v2.4/d7vk-v2.4.zip"
      }
    ],
    "game": {
      "arch": "win64",
      "exe": "$GAMEDIR/drive_c/ToyStory2/toy2.exe",
      "prefix": "$GAMEDIR",
      "working_dir": "$GAMEDIR/drive_c/ToyStory2"
    },
    "installer": [
      {
        "insert-disc": {
          "message": "Mount the Toy Story 2 PC disc or ISO, then use Browse to select its root folder.",
          "requires": "Setup/Toy2/HD/toy2.exe"
        }
      },
      {
        "task": {
          "args": "\"Setup\\Toy2\\HD\" \"C:\\ToyStory2\" /E /I /H /Y",
          "description": "Preparing Wine and copying game files...",
          "executable": "xcopy.exe",
          "name": "wineexec",
          "working_dir": "$DISC"
        }
      },
      {
        "task": {
          "args": "\"Setup\\Toy2\\CD\" \"C:\\ToyStory2\\CD\" /E /I /H /Y",
          "description": "Copying music and videos...",
          "executable": "xcopy.exe",
          "name": "wineexec",
          "working_dir": "$DISC"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/ToyStory2",
          "file": "fix"
        }
      },
      {
        "extract": {
          "dst": "$CACHE/d7vk",
          "file": "d7vk"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/ToyStory2",
          "src": "$CACHE/d7vk/x32/ddraw.dll"
        }
      },
      {
        "write_file": {
          "content": "d3d9.maxFrameRate = 60\nddraw.legacySurfaceDimensions = False\n",
          "file": "$GAMEDIR/drive_c/ToyStory2/dxvk.conf"
        }
      },
      {
        "task": {
          "description": "Configuring the game registry...",
          "key": "path",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\TravellersTalesToyStory2",
          "value": "C:\\\\ToyStory2\\\\data\\\\"
        }
      },
      {
        "task": {
          "key": "cdpath",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\TravellersTalesToyStory2",
          "value": "C:\\\\ToyStory2\\\\CD\\\\"
        }
      },
      {
        "task": {
          "key": "Managed",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\toy2.exe\\X11 Driver",
          "value": "Y"
        }
      },
      {
        "task": {
          "app": "amstream quartz",
          "description": "Installing Microsoft AMStream and Quartz for video playback...",
          "name": "winetricks"
        }
      }
    ],
    "wine": {
      "d3d_extras": false,
      "dgvoodoo2": false,
      "dxvk": false,
      "dxvk_nvapi": false,
      "overrides": {
        "ddraw": "n,b",
        "dsound": "n,b",
        "quartz": "n,b",
        "winegstreamer": "disabled"
      },
      "vkd3d": false
    }
  }
}
Back to game