{
    "version": "7.1",
    "description": "Allows to use the Nintendo Switch Pro Controller, Joycons and SNES controller in various emulators or as generic XInput",
    "homepage": "https://github.com/Davidobot/BetterJoy",
    "license": "MIT",
    "architecture": {
        "64bit": {
            "url": "https://github.com/Davidobot/BetterJoy/releases/download/v7.1/BetterJoy_v7.1.zip",
            "hash": "a9ffe5bb14b05e775f34f9eeff41fca89a350d49252eedae1e330e88952e7f36"
        }
    },
    "pre_install": [
        "'BetterJoyForCemu.exe.config', '3rdPartyControllers', 'settings' | ForEach-Object {",
        "    Copy-Item \"$persist_dir\\$_\" \"$dir\" -ErrorAction 'SilentlyContinue' -Force",
        "}"
    ],
    "uninstaller": {
        "script": [
            "ensure \"$persist_dir\" | Out-Null",
            "'BetterJoyForCemu.exe.config', '3rdPartyControllers', 'settings' | ForEach-Object {",
            "    Copy-Item \"$dir\\$_\" \"$persist_dir\" -ErrorAction 'SilentlyContinue' -Force",
            "}"
        ]
    },
    "shortcuts": [
        [
            "BetterJoyForCemu.exe",
            "BetterJoy"
        ]
    ],
    "checkver": {
        "github": "https://github.com/Davidobot/BetterJoy",
        "regex": "download/v([\\w.]+)/"
    },
    "autoupdate": {
        "architecture": {
            "64bit": {
                "url": "https://github.com/Davidobot/BetterJoy/releases/download/v$version/BetterJoy_v$version.zip"
            }
        }
    }
}
