#!/bin/sh
doomfile="`cat $1 | cut -d "|" -f 1`" #assume the input might be trying something sketchy and remove pipes
cd /mnt/SDCARD/Apps/games/ccdoom/
./chocolate-doom $doomfile