Skip to content

Commit babfa44

Browse files
committedMar 22, 2017
Windows: d3dcompiler_47.dll is redistributable, so add it to our installation package scripts.
1 parent c35461b commit babfa44

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed
 

‎Windows/zipup.cmd

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ echo Deleting old file %name%
1212
del %name%
1313

1414
echo Adding files to %name%
15-
zip --recurse-paths %name% assets flash0 PPSSPPWindows.exe PPSSPPWindows64.exe README.md
15+
REM Not distributing the 10 version because it's not compatible with older Windows.
16+
cp dx9sdk\8.1\Redist\D3D\x64\d3dcompiler_47.dll .
17+
cp dx9sdk\8.1\Redist\D3D\x86\d3dcompiler_47.dll .\d3dcompiler_47.x86.dll
18+
zip --recurse-paths %name% assets flash0 PPSSPPWindows.exe PPSSPPWindows64.exe d3dcompiler_47.dll d3dcompiler_47.x86.dll README.md
19+
del d3dcompiler_47.dll d3dcompiler_v47.x86.dll
1620

1721
echo Done: %name%
1822
goto DONE

‎ext/native/thin3d/d3d11_loader.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ LoadD3D11Error LoadD3D11() {
3636
}
3737

3838
g_D3DCompileModule = LoadLibrary(D3DCOMPILER_DLL);
39+
#if PPSSPP_PLATFORM(32BIT)
40+
// Workaround for distributing both 32-bit and 64-bit versions of the DLL.
41+
if (!g_D3DCompileModule)
42+
g_D3DCompileModule = LoadLibrary("D3dcompiler_47.x86.dll");
43+
#endif
3944
if (!g_D3DCompileModule)
4045
g_D3DCompileModule = LoadLibrary(L"D3dcompiler_42.dll");
4146

‎ext/native/thin3d/d3dx9_loader.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
#include "base/logging.h"
99
#include "thin3d/d3dx9_loader.h"
1010

11+
// TODO: See if we can use the bundled D3Dcompiler_47.dll to compiler for DX9 as well.
12+
1113
typedef BOOL(__stdcall *TFunc_D3DXCheckVersion)(UINT D3DSDKVersion, UINT D3DXSDKVersion);
1214
typedef HRESULT(__stdcall *TFunc_D3DXCompileShader)(
1315
LPCSTR pSrcData,

‎ppsspp.iss

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Source: "assets\*.*"; DestDir: "{app}\assets"
2424
Source: "assets\shaders\*.*"; DestDir: "{app}\assets\shaders"
2525
Source: "assets\lang\*.ini"; DestDir: "{app}\assets\lang"
2626
Source: "flash0\font\*.*"; DestDir: "{app}\flash0\font"
27+
Source: "dx9sdk\8.1\Redist\D3D\x64\d3dcompiler_47.dll"; DestDir: "{app}"
28+
Source: "dx9sdk\8.1\Redist\D3D\x86\d3dcompiler_47.dll"; DestName: "d3dcompiler_47.x86.dll"; DestDir: "{app}"
2729

2830
[Run]
2931
Filename: {app}\PPSSPPWindows.exe; Description: {cm:LaunchProgram,{cm:AppName}}; Flags: nowait postinstall skipifsilent

0 commit comments

Comments
 (0)
Please sign in to comment.