Installer kingdom-hearts-3582-days-melon-mix

files:
- melon_mix: https://github.com/vitor251093/KHMelonMix/releases/latest/download/MelonMix-appimage-x86_64.zip
- rom: N/A:Select a dump of your copy of Kingdom Hearts 358/2 Days
- assets: 'N/A:Download the most recent assets .zip file from here:

    https://drive.google.com/drive/folders/1vQL7QZ0cQhjJ2TRFt_7u76yG9MGj6bkr?usp=sharing'
game:
  args: $GAMEDIR/roms/days.nds
  exe: $GAMEDIR/MelonMix.AppImage
  launch_configs:
  - args: ''
    exe: $GAMEDIR/MelonMix.AppImage
    name: Config
  working_dir: $GAMEDIR
installer:
- extract:
    dst: $GAMEDIR
    file: melon_mix
- execute:
    command: rm -f "$GAMEDIR"/*.exe
- execute:
    command: rm -f "$GAMEDIR/roms"/*
- extract:
    dst: $GAMEDIR/assets
    file: assets
- execute:
    command: rm -rf "$GAMEDIR"/assets/recoded
- copy:
    description: Copying ROM...
    dst: $GAMEDIR/roms
    src: rom
- execute:
    command: mv "$GAMEDIR/roms"/* "$GAMEDIR/roms/days.nds"
- write_config:
    data:
      3D: {}
      3D.GL:
        ScaleFactor: 8
      Instance0: {}
      Instance0.Joystick:
        A: 0
        B: 1
        CameraDown: 67239935
        CameraLeft: 51511295
        CameraRight: 50462719
        CameraUp: 68288511
        Down: 16908287
        HK_CommandMenuDown: 260
        HK_CommandMenuLeft: 264
        HK_CommandMenuRight: 258
        HK_CommandMenuUp: 257
        HK_FullscreenMapToggle: 6
        HK_LSwitchTarget: 35782655
        HK_RLockOn: 5
        HK_RSwitchTarget: 86114303
        L: 4
        Left: 1179647
        Right: 131071
        Start: 7
        Up: 17956863
        X: 2
        Y: 3
      Instance0.Keyboard:
        HK_FullscreenToggle: 16777238
      KHDays_EU:
        FullscreenOnStartup: 'true'
    file: $GAMEDIR/melonDS.toml
    merge: false
- execute:
    command: mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/khDaysMM"
- execute:
    command: mv "$GAMEDIR/melonDS.toml" "${XDG_CONFIG_HOME:-$HOME/.config}/khDaysMM/"
system:
  disable_runtime: true
description: ''
game_slug: kingdom-hearts-3582-days
gogslug: ''
humblestoreid: ''
installer_slug: kingdom-hearts-3582-days-melon-mix
name: Kingdom Hearts 358/2 Days
notes: "Use \"Page Up\" on your keyboard or \"R4\" on your SteamDeck in desktop mode\
  \ to toggle Fullscreen mode.\r\nHave a look at the official website for the most\
  \ recent recommended configurations: https://github.com/vitor251093/KHMelonMix\r\
  \nFeedback, Issues and Pull Requests regarding the installer script are gladly welcome\
  \ at: https://codeberg.org/lutris-forge/lutris-kingdom-hearts-3582-days-melon-mix"
runner: linux
script:
  files:
  - melon_mix: https://github.com/vitor251093/KHMelonMix/releases/latest/download/MelonMix-appimage-x86_64.zip
  - rom: N/A:Select a dump of your copy of Kingdom Hearts 358/2 Days
  - assets: 'N/A:Download the most recent assets .zip file from here:

      https://drive.google.com/drive/folders/1vQL7QZ0cQhjJ2TRFt_7u76yG9MGj6bkr?usp=sharing'
  game:
    args: $GAMEDIR/roms/days.nds
    exe: $GAMEDIR/MelonMix.AppImage
    launch_configs:
    - args: ''
      exe: $GAMEDIR/MelonMix.AppImage
      name: Config
    working_dir: $GAMEDIR
  installer:
  - extract:
      dst: $GAMEDIR
      file: melon_mix
  - execute:
      command: rm -f "$GAMEDIR"/*.exe
  - execute:
      command: rm -f "$GAMEDIR/roms"/*
  - extract:
      dst: $GAMEDIR/assets
      file: assets
  - execute:
      command: rm -rf "$GAMEDIR"/assets/recoded
  - copy:
      description: Copying ROM...
      dst: $GAMEDIR/roms
      src: rom
  - execute:
      command: mv "$GAMEDIR/roms"/* "$GAMEDIR/roms/days.nds"
  - write_config:
      data:
        3D: {}
        3D.GL:
          ScaleFactor: 8
        Instance0: {}
        Instance0.Joystick:
          A: 0
          B: 1
          CameraDown: 67239935
          CameraLeft: 51511295
          CameraRight: 50462719
          CameraUp: 68288511
          Down: 16908287
          HK_CommandMenuDown: 260
          HK_CommandMenuLeft: 264
          HK_CommandMenuRight: 258
          HK_CommandMenuUp: 257
          HK_FullscreenMapToggle: 6
          HK_LSwitchTarget: 35782655
          HK_RLockOn: 5
          HK_RSwitchTarget: 86114303
          L: 4
          Left: 1179647
          Right: 131071
          Start: 7
          Up: 17956863
          X: 2
          Y: 3
        Instance0.Keyboard:
          HK_FullscreenToggle: 16777238
        KHDays_EU:
          FullscreenOnStartup: 'true'
      file: $GAMEDIR/melonDS.toml
      merge: false
  - execute:
      command: mkdir -p "${XDG_CONFIG_HOME:-$HOME/.config}/khDaysMM"
  - execute:
      command: mv "$GAMEDIR/melonDS.toml" "${XDG_CONFIG_HOME:-$HOME/.config}/khDaysMM/"
  system:
    disable_runtime: true
slug: kingdom-hearts-3582-days-melon-mix
steamid: null
version: Melon Mix
year: 2009
{
  "game_slug": "kingdom-hearts-3582-days",
  "version": "Melon Mix",
  "description": "",
  "notes": "Use \"Page Up\" on your keyboard or \"R4\" on your SteamDeck in desktop mode to toggle Fullscreen mode.\r\nHave a look at the official website for the most recent recommended configurations: https://github.com/vitor251093/KHMelonMix\r\nFeedback, Issues and Pull Requests regarding the installer script are gladly welcome at: https://codeberg.org/lutris-forge/lutris-kingdom-hearts-3582-days-melon-mix",
  "name": "Kingdom Hearts 358/2 Days",
  "year": 2009,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "linux",
  "slug": "kingdom-hearts-3582-days-melon-mix",
  "installer_slug": "kingdom-hearts-3582-days-melon-mix",
  "script": {
    "files": [
      {
        "melon_mix": "https://github.com/vitor251093/KHMelonMix/releases/latest/download/MelonMix-appimage-x86_64.zip"
      },
      {
        "rom": "N/A:Select a dump of your copy of Kingdom Hearts 358/2 Days"
      },
      {
        "assets": "N/A:Download the most recent assets .zip file from here:\nhttps://drive.google.com/drive/folders/1vQL7QZ0cQhjJ2TRFt_7u76yG9MGj6bkr?usp=sharing"
      }
    ],
    "game": {
      "args": "$GAMEDIR/roms/days.nds",
      "exe": "$GAMEDIR/MelonMix.AppImage",
      "launch_configs": [
        {
          "args": "",
          "exe": "$GAMEDIR/MelonMix.AppImage",
          "name": "Config"
        }
      ],
      "working_dir": "$GAMEDIR"
    },
    "installer": [
      {
        "extract": {
          "dst": "$GAMEDIR",
          "file": "melon_mix"
        }
      },
      {
        "execute": {
          "command": "rm -f \"$GAMEDIR\"/*.exe"
        }
      },
      {
        "execute": {
          "command": "rm -f \"$GAMEDIR/roms\"/*"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/assets",
          "file": "assets"
        }
      },
      {
        "execute": {
          "command": "rm -rf \"$GAMEDIR\"/assets/recoded"
        }
      },
      {
        "copy": {
          "description": "Copying ROM...",
          "dst": "$GAMEDIR/roms",
          "src": "rom"
        }
      },
      {
        "execute": {
          "command": "mv \"$GAMEDIR/roms\"/* \"$GAMEDIR/roms/days.nds\""
        }
      },
      {
        "write_config": {
          "data": {
            "3D": {},
            "3D.GL": {
              "ScaleFactor": 8
            },
            "Instance0": {},
            "Instance0.Joystick": {
              "A": 0,
              "B": 1,
              "CameraDown": 67239935,
              "CameraLeft": 51511295,
              "CameraRight": 50462719,
              "CameraUp": 68288511,
              "Down": 16908287,
              "HK_CommandMenuDown": 260,
              "HK_CommandMenuLeft": 264,
              "HK_CommandMenuRight": 258,
              "HK_CommandMenuUp": 257,
              "HK_FullscreenMapToggle": 6,
              "HK_LSwitchTarget": 35782655,
              "HK_RLockOn": 5,
              "HK_RSwitchTarget": 86114303,
              "L": 4,
              "Left": 1179647,
              "Right": 131071,
              "Start": 7,
              "Up": 17956863,
              "X": 2,
              "Y": 3
            },
            "Instance0.Keyboard": {
              "HK_FullscreenToggle": 16777238
            },
            "KHDays_EU": {
              "FullscreenOnStartup": "true"
            }
          },
          "file": "$GAMEDIR/melonDS.toml",
          "merge": false
        }
      },
      {
        "execute": {
          "command": "mkdir -p \"${XDG_CONFIG_HOME:-$HOME/.config}/khDaysMM\""
        }
      },
      {
        "execute": {
          "command": "mv \"$GAMEDIR/melonDS.toml\" \"${XDG_CONFIG_HOME:-$HOME/.config}/khDaysMM/\""
        }
      }
    ],
    "system": {
      "disable_runtime": true
    }
  }
}
Back to game