Contents of /trunk/cedega/cedega-winex
Parent Directory | Revision Log
Revision 153 -
(show annotations)
(download)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 1238 byte(s)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 1238 byte(s)
-import
1 | #!/bin/bash |
2 | # The wineX wrapper |
3 | |
4 | # Kindly distributed by Martin Schlemmer |
5 | # Modified by phoen][x |
6 | |
7 | export INSTALLDIR="/usr/lib/cedega" |
8 | |
9 | export WINEPREFIX="$HOME/.cedega" |
10 | |
11 | export LD_LIBRARY_PATH="$INSTALLDIR/lib/wine:$INSTALLDIR/lib:$LD_LIBRARY_PATH" |
12 | export WINEDLLPATH="$LD_LIBRARY_PATH" |
13 | |
14 | export WINE_LOADER=wine |
15 | |
16 | export RUNWINE="$INSTALLDIR/bin/wine" |
17 | export REGAPI="$INSTALLDIR/bin/regapi" |
18 | |
19 | if [ ! -f $WINEPREFIX/config ] |
20 | then |
21 | echo "!! ~/.winex-cvs/config misses" |
22 | echo "!! Setting up a config file" |
23 | |
24 | mkdir -p $WINEPREFIX/fake_windows |
25 | |
26 | # First copy in the new config file. |
27 | cp "$INSTALLDIR/.data/config" "$WINEPREFIX/config" |
28 | |
29 | echo "!! Setting up ~/.winex-cvs/fake_windows/" |
30 | cp -R $INSTALLDIR/.data/fake_windows/* $WINEPREFIX/fake_windows |
31 | |
32 | echo "!! Setting up default registry." |
33 | "$REGAPI" setValue < "$INSTALLDIR/.data/winedefault.reg" &> /dev/null |
34 | |
35 | echo "!! Installation complete." |
36 | echo "!! Modify ~/.winex-cvs/config to reflect your systems setup." |
37 | exit |
38 | fi |
39 | |
40 | # Force the use of the more memory-efficient MSVC 5 allocator with |
41 | # any programs that use MSVCRT. This reduces memory consumption |
42 | # significantly. |
43 | export __MSVCRT_HEAP_SELECT=__GLOBAL_HEAP_SELECTED,2 |
44 | |
45 | |
46 | PATH="$INSTALLDIR/bin:$PATH" |
47 | |
48 | "$RUNWINE" --debugmsg -all "$@" |