-
-
Save CommanderAlchemy/6958409 to your computer and use it in GitHub Desktop.
EVE-Online launcher
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Credits 2011 Artur O. <commander.alchemy@gmail.com> | |
# Passes down arguments and launches with the correct options | |
# | |
#Wine installation | |
#cd ~/.Commander | |
# Install command for prefix: = WINEARCH=win32 WINEPREFIX=~/.Games/eve/char/Commander winetricks vcrun2005 vcrun2008 vcrun2010 corefonts win7 | |
# Install Path | |
install=~/.Games/eve/install/drive_c/Program\ Files/CCP/EVE/eve.exe | |
# Default debug flag | |
flag="-all" | |
debugmode="null" | |
debug="[Debug Mode] Off" | |
# If no arguments passed exit | |
if [ "$#" == "0" ]; then | |
echo "" | |
echo "[No Arguments Given]" | |
echo "" | |
exit 0 | |
fi | |
# Parse arguments | |
for argz in "$@" ;do | |
if [ "$argz" == "-all" ]; then | |
flag="-all" | |
debug="[Debug Mode] Off" | |
debugmode="-all" | |
fi | |
if [ "$argz" == "-d" ]; then | |
debug="[Debug Mode] Enabled" | |
debugmode="-d" | |
flag="+relay" | |
fi | |
if [ "$argz" == "+all" ]; then | |
debug="[Debug Mode] Extended" | |
flag="+all" | |
fi | |
if [ "$argz" == "Commander" ]; then | |
export WINEPREFIX=~/.Games/eve/char/Commander | |
client="Commander" | |
resolution="0x0" | |
fi | |
if [ "$argz" == "Amadeus" ]; then | |
export WINEPREFIX=~/.Games/eve/char/Amadeus | |
client="Amadeus" | |
resolution="0x0" | |
fi | |
if [ "$argz" == "sisi" ]; then | |
export WINEPREFIX=~/.Games/eve/sisi | |
client="sisi" | |
resolution="0x0" | |
install=~/.Games/eve/sisi/drive_c/Program\ Files/CCP/EVE/eve.exe\ /server:Singularity | |
fi | |
if [ "$argz" == "winetricks" ]; then | |
echo "" | |
echo "[Launching Winetricks]" | |
echo "For:$WINEPREFIX" | |
echo "" | |
winetricks | |
exit 0 | |
fi | |
if [ "$argz" == "-conf" ]; then | |
echo "" | |
echo "[Launching Settings]" | |
echo "For:$WINEPREFIX" | |
echo "" | |
winecfg | |
exit 0 | |
fi | |
if [ "$argz" == "-k" ]; then | |
echo "" | |
echo "Killing $client" | |
echo "For: $WINEPREFIX" | |
echo "" | |
wineserver -k | |
exit 0 | |
fi | |
done | |
echo "" | |
echo "Starting Client "$client"" | |
echo "$WINEPREFIX" | |
echo "" | |
echo "$debug" | |
echo "" | |
WINEDEBUG="$flag" wine explorer /desktop=EVE-"$client","$resolution" $install &>>~/EVE/"$client".log& | |
if [ "$debugmode" == "-d" ]; then | |
echo "" | |
echo "Launch Command" | |
echo "WINEDEBUG="$flag" __GL_THREADED_OPTIMIZATIONS=1 wine explorer /desktop=EVE-"$client","$resolution" "$install" &>> ~/EVE/"$client".log&" | |
echo "" | |
fi | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment