Fix Guild Wars
This commit is contained in:
parent
5e25ecccde
commit
96fa98c598
1 changed files with 37 additions and 24 deletions
|
@ -1,4 +1,39 @@
|
||||||
{ pkgs, lib, ... }: {
|
{ pkgs, lib, config, ... }: let
|
||||||
|
gw2dir = "${config.home.homeDirectory}/volatile/GW2";
|
||||||
|
wine = pkgs.wineWowPackages.staging;
|
||||||
|
gw2env = ''
|
||||||
|
export MESA_GLSL_CACHE_DISABLE=0
|
||||||
|
export MESA_GLSL_CACHE_DIR="$PWD/shader_cache"
|
||||||
|
export mesa_glthread=true
|
||||||
|
|
||||||
|
# Wine Settings
|
||||||
|
export DXVK_HUD=version,devinfo,fps
|
||||||
|
export DXVK_LOG_LEVEL=none
|
||||||
|
export WINEDEBUG=-all
|
||||||
|
export WINEARCH=win64
|
||||||
|
export WINEPREFIX="$PWD/data"
|
||||||
|
export STAGING_SHARED_MEMORY=1
|
||||||
|
export WINEESYNC=1
|
||||||
|
'';
|
||||||
|
gw2setup = pkgs.writeShellScriptBin "gw2-setup" ''
|
||||||
|
mkdir -p ${gw2dir}
|
||||||
|
cd ${gw2dir}
|
||||||
|
${gw2env}
|
||||||
|
echo Launching winecfg to configure desktop window
|
||||||
|
${wine}/bin/winecfg
|
||||||
|
echo Downloading installer
|
||||||
|
wget https://account.arena.net/content/download/gw2/win/64 -O Gw2Setup-64.exe
|
||||||
|
echo Running installer
|
||||||
|
${wine}/bin/wine64 ./Gw2Setup-64.exe
|
||||||
|
'';
|
||||||
|
gw2run = pkgs.writeShellScriptBin "gw2" ''
|
||||||
|
cd ${gw2dir}
|
||||||
|
${gw2env}
|
||||||
|
cd "$PWD/data/drive_c/Guild Wars 2"
|
||||||
|
${wine}/bin/wine64 ./Gw2-64.exe $@ -autologin
|
||||||
|
'';
|
||||||
|
in
|
||||||
|
{
|
||||||
|
|
||||||
dconf.settings."org/gnome/settings-daemon/plugins/media-keys" = {
|
dconf.settings."org/gnome/settings-daemon/plugins/media-keys" = {
|
||||||
mic-mute = lib.mkForce [ ];
|
mic-mute = lib.mkForce [ ];
|
||||||
|
@ -18,28 +53,6 @@
|
||||||
};
|
};
|
||||||
inherit (pkgs.unfree) steam;
|
inherit (pkgs.unfree) steam;
|
||||||
inherit (pkgs) minetest;
|
inherit (pkgs) minetest;
|
||||||
inherit (pkgs.wineWowPackages) staging;
|
inherit gw2run gw2setup wine;
|
||||||
gw2 = pkgs.writeShellScriptBin "gw2" ''
|
|
||||||
cd /home/maralorn/volatile/GW2
|
|
||||||
|
|
||||||
# Intel/AMD Mesa Specific Env_vars
|
|
||||||
# export vblank_mode=0
|
|
||||||
export MESA_GLSL_CACHE_DISABLE=0
|
|
||||||
export MESA_GLSL_CACHE_DIR="$PWD/shader_cache"
|
|
||||||
export mesa_glthread=true
|
|
||||||
|
|
||||||
# Wine Settings
|
|
||||||
#export DXVK_HUD=version,devinfo,fps
|
|
||||||
export DXVK_LOG_LEVEL=none
|
|
||||||
export WINEDEBUG=-all
|
|
||||||
export WINEARCH=win64
|
|
||||||
export WINEPREFIX="$PWD/data"
|
|
||||||
export STAGING_SHARED_MEMORY=1
|
|
||||||
export WINEESYNC=1
|
|
||||||
|
|
||||||
# Launch Command
|
|
||||||
cd "$PWD/data/drive_c/GW2"
|
|
||||||
wine64 ./GW2.exe $@ -autologin
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue