"...MacOSX/svn:/svn.code.sf.net/p/irrlicht/code/trunk@1719" did not exist on "f0b392d96e68f2871e4c2a85dbc805c9c2eae869"
Commit 911ca538 authored by hybrid's avatar hybrid

Use io::path for DX library handling, in order to allow for Unicode...

Use io::path for DX library handling, in order to allow for Unicode compilation mode. Found by MadHyde

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2736 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 45b86c8e
......@@ -163,7 +163,7 @@ bool CD3D9Driver::initDriver(const core::dimension2d<u32>& screenSize,
if (!pID3D)
{
D3DLibrary = LoadLibrary( "d3d9.dll" );
D3DLibrary = LoadLibrary( io::path("d3d9.dll").c_str() );
if (!D3DLibrary)
{
......
......@@ -325,7 +325,7 @@ HRESULT CD3D9ShaderMaterialRenderer::stubD3DXAssembleShader(LPCSTR pSrcData,
if (!pFn && !LoadFailed)
{
// try to load dll
core::stringc strDllName = "d3dx9_";
io::path strDllName = "d3dx9_";
strDllName += (int)D3DX_SDK_VERSION;
strDllName += ".dll";
......@@ -385,7 +385,7 @@ HRESULT CD3D9ShaderMaterialRenderer::stubD3DXAssembleShaderFromFile(LPCSTR pSrcF
if (!pFn && !LoadFailed)
{
// try to load dll
core::stringc strDllName = "d3dx9_";
io::path strDllName = "d3dx9_";
strDllName += (int)D3DX_SDK_VERSION;
strDllName += ".dll";
......@@ -446,7 +446,7 @@ HRESULT CD3D9ShaderMaterialRenderer::stubD3DXCompileShader(LPCSTR pSrcData, UINT
if (!pFn && !LoadFailed)
{
// try to load dll
core::stringc strDllName = "d3dx9_";
io::path strDllName = "d3dx9_";
strDllName += (int)D3DX_SDK_VERSION;
strDllName += ".dll";
......@@ -506,7 +506,7 @@ HRESULT CD3D9ShaderMaterialRenderer::stubD3DXCompileShaderFromFile(LPCSTR pSrcFi
if (!pFn && !LoadFailed)
{
// try to load dll
core::stringc strDllName = "d3dx9_";
io::path strDllName = "d3dx9_";
strDllName += (int)D3DX_SDK_VERSION;
strDllName += ".dll";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment