debug version of dx9 dll isn't always in the PATH, so you would get an error while dolphin would still load the correct release version of the lib and continue running. so...just check for the release version of the dll.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5554 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
33566b5c07
commit
99e7a2ceac
|
@ -190,13 +190,7 @@ const int TS[6][2] =
|
|||
|
||||
bool DXCheck( std::wstring& msg )
|
||||
{
|
||||
std::wstring dll =
|
||||
#ifdef _DEBUG
|
||||
StringFromFormat( _T("d3dx9d_%d.dll"), D3DX_SDK_VERSION);
|
||||
#else
|
||||
StringFromFormat( _T("d3dx9_%d.dll"), D3DX_SDK_VERSION);
|
||||
#endif
|
||||
HINSTANCE hDll = LoadLibrary(dll.c_str());
|
||||
HINSTANCE hDll = LoadLibrary(StringFromFormat( _T("d3dx9_%d.dll"), D3DX_SDK_VERSION).c_str());
|
||||
if( !hDll )
|
||||
{
|
||||
msg = _T("Please make sure that you have the latest version of DirectX 9.0c correctly installed.");
|
||||
|
|
Loading…
Reference in New Issue