summarylogtreecommitdiffstats
path: root/clrmamepro
blob: 94946884cb089a8698b9c54839ef73486e2ca4a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
unset WINEPREFIX
export WINEDLLOVERRIDES="mscoree,mshtml="

if [ ! -d "$HOME"/.clrmamepro ] ; then
   mkdir -p "$HOME"/.clrmamepro
   ln -s /usr/share/clrmamepro/cmpro.exe "$HOME"/.clrmamepro/cmpro || exit 1
   ln -s /usr/share/clrmamepro/engine.cfg "$HOME"/.clrmamepro/engine.cfg || exit 1
   ln -s /usr/share/clrmamepro/setformat.xml "$HOME"/.clrmamepro/setformat.xml || exit 1
   ln -s /usr/share/clrmamepro/stats.ini "$HOME"/.clrmamepro/stats.ini || exit 1
   ln -s /usr/share/clrmamepro/unrar.dll "$HOME"/.clrmamepro/unrar.dll || exit 1
   ln -s /usr/share/clrmamepro/update.dll "$HOME"/.clrmamepro/update.dll || exit 1
   ln -s /usr/share/clrmamepro/urls.ini "$HOME"/.clrmamepro/urls.ini || exit 1
   ln -s /usr/share/clrmamepro/version.ini "$HOME"/.clrmamepro/version.ini || exit 1
fi
# 7z_32.dll added in 4.014
if [ ! -e "$HOME"/.clrmamepro/7z_32.dll ] ; then
   ln -s /usr/share/clrmamepro/7z_32.dll "$HOME"/.clrmamepro/7z_32.dll || exit 1 ;
fi

wine "$HOME"/.clrmamepro/cmpro "$@"