-
Notifications
You must be signed in to change notification settings - Fork 14
/
start-example.sh
57 lines (37 loc) · 1.3 KB
/
start-example.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
FOLDER1=your-game
FOLDER2=YourGameFolder
EXE_PATH=your-game.exe
#enable fsync
export WINEESYNC=0
export WINEFSYNC=1
#enable esync
#export WINEESYNC=1
#export WINEFSYNC=0
#enable/disable winedebug
export WINEDEBUG=-all
#enable/disable winedebug for waylanddrv
#export WINEDEBUG=+waylanddrv
#enable for games that have their own cursor
#export WINE_VK_HIDE_CURSOR=1
export WINEPREFIX=$PWD/prefix/$FOLDER1/.wine
#create and update wineprefix on first run of your game
if [ ! -d $WINEPREFIX ]; then
wineboot -u
fi
#enables vulkan only windows, disable to see any GDI error popups
export WINE_VK_VULKAN_ONLY=1
#set width/height of vulkan window. must be common resolution
export WINE_VK_WAYLAND_WIDTH=1920
export WINE_VK_WAYLAND_HEIGHT=1080
#dxvk options here
export DXVK_LOG_LEVEL=none
#enable/disable dxvk_hud
export DXVK_HUD=1
#enable disable mangohud if available
#export MANGOHUD=1
#export MANGOHUD_CONFIG=cpu_temp,gpu_temp,height=100,font_size=20
#---Modify folder names here
cd "prefix/$FOLDER1/$FOLDER2"
WINEDLLOVERRIDES="dxgi,d3d11=n,b;dinput=d;winedbg=d;winemenubuilder.exe=d;mscoree=d;mshtml=d" wine64 $EXE_PATH #add command line arguments if needed
#or uncomment for 32bit
#WINEDLLOVERRIDES="dxgi,d3d11=n,b,dinput=d,winedbg=d" wine your32bitgame.exe #add command line arguments if neededPortal