#!/bin/sh

HOME=$DEBUG_REAL_HOME steam steam://install/730

unzip -o csgo-demo-10.zip
mv pts10.dem $DEBUG_REAL_HOME/.steam/steam/steamapps/common/Counter-Strike\ Global\ Offensive/csgo

echo "#!/bin/bash
. steam-env-vars.sh
cd \$DEBUG_REAL_HOME/.steam/steam/steamapps/common/Counter-Strike\ Global\ Offensive/
rm -rf csgo/SourceBench*
rm -f UNKNOWN
export SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0
./csgo_linux64 -game csgo \$@
cat csgo/SourceBench* > \$LOG_FILE
cat csgo/UNKNOWN >> \$LOG_FILE" > csgo
chmod +x csgo
