mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
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:
@ -190,13 +190,7 @@ const int TS[6][2] =
|
|||||||
|
|
||||||
bool DXCheck( std::wstring& msg )
|
bool DXCheck( std::wstring& msg )
|
||||||
{
|
{
|
||||||
std::wstring dll =
|
HINSTANCE hDll = LoadLibrary(StringFromFormat( _T("d3dx9_%d.dll"), D3DX_SDK_VERSION).c_str());
|
||||||
#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());
|
|
||||||
if( !hDll )
|
if( !hDll )
|
||||||
{
|
{
|
||||||
msg = _T("Please make sure that you have the latest version of DirectX 9.0c correctly installed.");
|
msg = _T("Please make sure that you have the latest version of DirectX 9.0c correctly installed.");
|
||||||
|
Reference in New Issue
Block a user