files:
- game: N/A:Select the file Zork2.BAT
game:
main_file: $GAMEDIR/zork2.conf
installer:
- execute:
args: $GAMEDIR/HDD $GAMEDIR/HDD/zork2
file: mkdir
- write_file:
content: '#!/bin/bash
src=$1
dst=$2
src_path=$(echo "$1" | sed -r "s/(.+)\/.+/\1/")
cp -avr "$src_path/." "$dst"'
file: $CACHE/bulkcopy.sh
- chmodx: $CACHE/bulkcopy.sh
- execute:
args: $game $GAMEDIR/HDD/zork2
file: $CACHE/bulkcopy.sh
- write_file:
content: '[autoexec]
mount C "$GAMEDIR/HDD" -t dir
C:
cd zork2
zork2
exit'
file: $GAMEDIR/zork2.conf
description: null
game_slug: zork-ii
gogslug: ''
humblestoreid: ''
installer_slug: zork-ii-dos
name: Zork II
notes: ''
runner: dosbox
script:
files:
- game: N/A:Select the file Zork2.BAT
game:
main_file: $GAMEDIR/zork2.conf
installer:
- execute:
args: $GAMEDIR/HDD $GAMEDIR/HDD/zork2
file: mkdir
- write_file:
content: '#!/bin/bash
src=$1
dst=$2
src_path=$(echo "$1" | sed -r "s/(.+)\/.+/\1/")
cp -avr "$src_path/." "$dst"'
file: $CACHE/bulkcopy.sh
- chmodx: $CACHE/bulkcopy.sh
- execute:
args: $game $GAMEDIR/HDD/zork2
file: $CACHE/bulkcopy.sh
- write_file:
content: '[autoexec]
mount C "$GAMEDIR/HDD" -t dir
C:
cd zork2
zork2
exit'
file: $GAMEDIR/zork2.conf
slug: zork-ii-dos
steamid: null
version: DOS
year: 1981
{
"game_slug": "zork-ii",
"version": "DOS",
"description": null,
"notes": "",
"name": "Zork II",
"year": 1981,
"steamid": null,
"gogslug": "",
"humblestoreid": "",
"runner": "dosbox",
"slug": "zork-ii-dos",
"installer_slug": "zork-ii-dos",
"script": {
"files": [
{
"game": "N/A:Select the file Zork2.BAT"
}
],
"game": {
"main_file": "$GAMEDIR/zork2.conf"
},
"installer": [
{
"execute": {
"args": "$GAMEDIR/HDD $GAMEDIR/HDD/zork2",
"file": "mkdir"
}
},
{
"write_file": {
"content": "#!/bin/bash\nsrc=$1\ndst=$2\nsrc_path=$(echo \"$1\" | sed -r \"s/(.+)\\/.+/\\1/\")\ncp -avr \"$src_path/.\" \"$dst\"",
"file": "$CACHE/bulkcopy.sh"
}
},
{
"chmodx": "$CACHE/bulkcopy.sh"
},
{
"execute": {
"args": "$game $GAMEDIR/HDD/zork2",
"file": "$CACHE/bulkcopy.sh"
}
},
{
"write_file": {
"content": "[autoexec]\nmount C \"$GAMEDIR/HDD\" -t dir\nC:\ncd zork2\nzork2\nexit",
"file": "$GAMEDIR/zork2.conf"
}
}
]
}
}