rpcs3-dev: Create `.yml` files if they don't exist (#311)

master
Max Lantas 2021-09-10 14:50:53 -07:00 committed by GitHub
parent 754360fad9
commit dbf9d19ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -24,6 +24,16 @@
"RPCS3-dev"
]
],
"installer": {
"script": [
"if (!(Test-Path \"$persist_dir\\config.yml\")) {",
" New-Item \"$dir\\config.yml\" -Type File | Out-Null",
"}",
"if (!(Test-Path \"$persist_dir\\games.yml\")) {",
" New-Item \"$dir\\games.yml\" -Type File | Out-Null",
"}"
]
},
"checkver": {
"url": "https://rpcs3.net/compatibility?b",
"regex": "/rpcs3-binaries-win/releases/download/build-(?<fullhash>[0-9a-f]+)/rpcs3-v(?<build>[0-9]+\\.[0-9]+\\.[0-9]+\\-[0-9]+)-(?<shorthash>[0-9a-f]{8})",