Skip to content

Commit

Permalink
[r1626] Вместо D3DCompiler_43.dll используем d3dcompiler_47.dll.
Browse files Browse the repository at this point in the history
  • Loading branch information
v0lt committed Jun 18, 2016
1 parent 9bc1b38 commit 41c31e4
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -368,12 +368,12 @@ IF /I "%NAME%" == "MPC-BE" (
IF /I "%ARCH%" == "x64" (
COPY /Y /V "%~1_%ARCH%\mpc-be64.exe" "%PCKG_NAME%\mpc-be64.exe" >NUL
COPY /Y /V "%~1_%ARCH%\MPCBEShellExt64.dll" "%PCKG_NAME%\MPCBEShellExt64.dll" >NUL
COPY /Y /V "..\distrib\DirectX\x64\D3DCompiler_43.dll" "%PCKG_NAME%\D3DCompiler_43.dll" >NUL
COPY /Y /V "..\distrib\DirectX\x64\d3dcompiler_47.dll" "%PCKG_NAME%\d3dcompiler_47.dll" >NUL
COPY /Y /V "..\distrib\DirectX\x64\d3dx9_43.dll" "%PCKG_NAME%\d3dx9_43.dll" >NUL
) ELSE (
COPY /Y /V "%~1_%ARCH%\mpc-be.exe" "%PCKG_NAME%\mpc-be.exe" >NUL
COPY /Y /V "%~1_%ARCH%\MPCBEShellExt.dll" "%PCKG_NAME%\MPCBEShellExt.dll" >NUL
COPY /Y /V "..\distrib\DirectX\x86\D3DCompiler_43.dll" "%PCKG_NAME%\D3DCompiler_43.dll" >NUL
COPY /Y /V "..\distrib\DirectX\x86\d3dcompiler_47.dll" "%PCKG_NAME%\d3dcompiler_47.dll" >NUL
COPY /Y /V "..\distrib\DirectX\x86\d3dx9_43.dll" "%PCKG_NAME%\d3dx9_43.dll" >NUL
)
COPY /Y /V "%~1_%ARCH%\mpciconlib.dll" "%PCKG_NAME%\*.dll" >NUL
Expand Down
Binary file removed distrib/DirectX/x64/D3DCompiler_43.dll
Binary file not shown.
Binary file added distrib/DirectX/x64/d3dcompiler_47.dll
Binary file not shown.
Binary file removed distrib/DirectX/x86/D3DCompiler_43.dll
Binary file not shown.
Binary file added distrib/DirectX/x86/d3dcompiler_47.dll
Binary file not shown.
16 changes: 12 additions & 4 deletions distrib/mpc-be_setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ Name: reset_settings; Description: {cm:tsk_ResetSettings}; GroupDe
[Files]
Source: "{#bindir}\{#mpcbe_exe}"; DestDir: "{app}"; Flags: ignoreversion; Components: main
Source: "{#bindir}\mpciconlib.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: mpciconlib
Source: "{#dxdir}\D3DCompiler_43.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: main; Check : not D3DX9DLLExists();
Source: "{#dxdir}\d3dx9_43.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: main; Check : not D3DX9DLLExists();
Source: "{#dxdir}\d3dcompiler_47.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: main; Check : not D3DCompiler_47_DLLExists();
Source: "{#dxdir}\d3dx9_43.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: main; Check : not D3DX9_43_DLLExists();
Source: "{#bindir_x64}\MPCBEShellExt64.dll"; DestDir: "{app}"; Flags: ignoreversion restartreplace uninsrestartdelete regserver noregerror; Components: mpcbeshellext; Check : IsWin64
Source: "{#bindir_x86}\MPCBEShellExt.dll"; DestDir: "{app}"; Flags: ignoreversion restartreplace uninsrestartdelete regserver noregerror; Components: mpcbeshellext;
#ifdef localize
Expand Down Expand Up @@ -337,9 +337,17 @@ begin
end;
end;
function D3DX9DLLExists(): Boolean;
function D3DX9_43_DLLExists(): Boolean;
begin
if FileExists(ExpandConstant('{sys}\D3DX9_43.dll')) then
if FileExists(ExpandConstant('{sys}\d3dx9_43.dll')) then
Result := True
else
Result := False;
end;
function D3DCompiler_47_DLLExists(): Boolean;
begin
if FileExists(ExpandConstant('{sys}\d3dcompiler_47.dll')) then
Result := True
else
Result := False;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ HINSTANCE GetD3dcompilerDll()
static HINSTANCE s_hD3dcompilerDll = NULL;

if (s_hD3dcompilerDll == NULL) {
s_hD3dcompilerDll = LoadLibrary(L"D3dcompiler_43.dll"); // Microsoft DirectX SDK (June 2010)
s_hD3dcompilerDll = LoadLibrary(L"d3dcompiler_47.dll"); // Windows Kits\8.1\Redist\D3D\[x86|x64]\d3dcompiler_47.dll
}

return s_hD3dcompilerDll;
Expand Down

0 comments on commit 41c31e4

Please sign in to comment.