#!/bin/sh
progdir=$(dirname "$0")/vvvvvv
cd $progdir
HOME=$progdir
if [ ! -f data.zip ]; then
	./printstr "   Missing data.zip   "
	sleep 0.5
	exit 1
fi
cp /sys/class/volume/value /tmp/vol.txt
if [ -f vvv_vol.txt ]; then
	cat vvv_vol.txt >/sys/class/volume/value
fi
LD_PRELOAD=./j2k.so ./vvv_sdl12
cp /sys/class/volume/value vvv_vol.txt
cat /tmp/vol.txt >/sys/class/volume/value
rm /tmp/vol.txt
sync
