Skip to content

Instantly share code, notes, and snippets.

@zmughal
Created January 14, 2011 02:06
Show Gist options
  • Save zmughal/779030 to your computer and use it in GitHub Desktop.
Save zmughal/779030 to your computer and use it in GitHub Desktop.
#!/bin/sh
mkdir ~/build
cd ~/build
wget "http://prdownloads.sourceforge.net/wine/wine-1.3.9.tar.bz2"
tar -xvf "wine-1.3.9.tar.bz2"
cd wine-1.3.9
# http://bugs.winehq.org/show_bug.cgi?id=16822#attach_32614
wget -O ME_mouse_id_32614.patch http://bugs2.winehq.org/attachment.cgi?id=32614
patch -p1 < ME_mouse_id_32614.patch
mkdir -p ~/bin/wine-1.3.9_patched
./configure --prefix=$HOME/bin/wine-1.3.9_patched && \
make depend && \
make
make install
mkdir -p ~/.wine/registry_files
cat > "$HOME/.wine/registry_files/set-mwo_me.reg" <<_EOF_
REGEDIT4
[\HKEY_CURRENT_USER\Software\Wine\AppDefaults\MassEffect.exe\DirectInput]
"MouseWarpOverride"="force-box"
_EOF_
regedit "$HOME/.wine/registry_files/set-mwo_me.reg"
# add the following snippet to the end of your ~/.bashrc
# snip 8<-------
PATH=~/bin/wine-1.3.9_patched/bin:$PATH
export PATH
# end snip ------->8
which wine # this should output the patched wine
# Run the following afterwards
# wine "$HOME/.wine/drive_c/Program Files/Mass Effect/Binaries/MassEffect.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment