POL_Install_dinput

Informations

Creator Message
Quentin PÂRIS
Admin

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 200094
Wine: System

Feedbacks

Source code

#!/bin/bash
# Date : Unknown
# Last revision : (2012-05-16 00:30)
# Author : Tinou
# Updated by : GNU_Raziel
# Only For : http://www.playonlinux.com
# Used by old games like Rayman 2

# Downloading DLL 
POL_Download_Resource "http://download.microsoft.com/download/E/E/1/EE17FF74-6C45-4575-9CF4-7FC2597ACD18/directx_feb2010_redist.exe" "4cf007a355cb5f34a3c5c400113b33c3"

# Extracting DLL
cd "$POL_USER_ROOT/ressources"
mkdir -p dinput
cabextract -d dinput/ -L -F 'dxnt.cab' directx_feb2010_redist.exe || POL_Debug_Error "POL_Install_dinput : Failed te extract directx_feb2010_redist.exe"
cd dinput
cabextract dxnt.cab  -L -F 'dinput.dll' || POL_Debug_Error "POL_Install_dinput : Failed to extract dxnt.cab"

# Installing DLL
if [ "$POL_ARCH" == "amd64" ]; then
        cp "dinput.dll" "$WINEPREFIX/drive_c/windows/syswow64"
else
        cp "dinput.dll" "$WINEPREFIX/drive_c/windows/system32"
fi

# Overriding DLL
POL_Wine_OverrideDLL "native,builtin" "dinput"

Contributions

Filters:

Contribute
Member Message