Skip to content

Commit

Permalink
Update install scripts
Browse files Browse the repository at this point in the history
Not sure this new nvofapi64.dll is used in proton yet, but might be
coming. No harm done copying it even if proton not currently utilize
this library.
  • Loading branch information
SveSop committed Nov 6, 2024
1 parent 64926ff commit 2098e53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
1 change: 1 addition & 0 deletions proton_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ cp -f "$nvlibs_dir/$lib/$arch-unix/nvoptix.dll.so" "$PROTON_LIBS/files/$lib/$arc
cp -f "$nvlibs_dir/$lib/$arch-unix/nvml.so" "$PROTON_LIBS/files/$lib/$arch-unix"
cp -f "$nvlibs_dir/$lib/$arch-windows/nvml.dll" "$PROTON_LIBS/files/$lib/$arch-windows"
cp -f "$nvlibs_dir/$lib/$arch-windows/nvapi64.dll" "$PROTON_LIBS/files/$lib/nvapi"
cp -f "$nvlibs_dir/$lib/$arch-windows/nvofapi64.dll" "$PROTON_LIBS/files/$lib/nvapi"
cd "$PROTON_LIBS/files/share/default_pfx/drive_c/windows/system32"
ln -sf "../../../../../lib64/wine/$arch-windows/nvml.dll" "nvml.dll"
ln -sf "../../../../../lib64/wine/$arch-windows/nvoptix.dll" "nvoptix.dll"
Expand Down
17 changes: 5 additions & 12 deletions setup_nvlibs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,26 +106,19 @@ dll_ext='dll.so'
wine="wine64"
lib='lib64/wine/x86_64-unix'
unix_sys_path=$($wine winepath -u 'C:\windows\system32' 2> /dev/null)
echo '[1/3] 64 bit nvcuda :'
echo '[1/4] 64 bit nvcuda :'
$fun nvcuda
echo '[2/3] 64 bit nvoptix :'
echo '[2/4] 64 bit nvoptix :'
$fun nvoptix
dll_ext='dll'
lib='lib64/wine/x86_64-windows'
echo '[3/3] 64 bit nvapi64 :'
echo '[3/4] 64 bit nvapi64 :'
$fun nvapi64
echo '[4/4] 64 bit nvofapi64 :'
$fun nvofapi64

if [ "$fun" = removeOverride ]; then
echo "Rebooting prefix!"
wine reg delete 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v "nvml" /f > /dev/null 2>&1
unix_sys_path=$(wine winepath -u 'C:\windows\system32' 2> /dev/null)
if [ -h "$unix_sys_path/nvml.dll" ]; then
rm "$unix_sys_path/nvml.dll" 2>&1
fi
unix_sys_path=$(wine64 winepath -u 'C:\windows\system32' 2> /dev/null)
if [ -h "$unix_sys_path/nvml.dll" ]; then
rm "$unix_sys_path/nvml.dll" 2>&1
fi
wineboot -u
echo "All done!"
else
Expand Down

0 comments on commit 2098e53

Please sign in to comment.