Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
28 lines
662 B
C++
28 lines
662 B
C++
// Z3D_SetupDirectX.cpp
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#include "Z3D_SetupDirectX.h"
|
|
|
|
|
|
int Z3D_SetupDirectX( HWND hWnd, const char* szPrompt, char* szDXFilePath )
|
|
{
|
|
DWORD dwVer;
|
|
|
|
DirectXSetupGetVersion( &dwVer, NULL );
|
|
|
|
if( dwVer >= 0x00040008 )
|
|
{
|
|
return DSETUPERR_SUCCESS; // required version of DX or newer one already installed
|
|
}
|
|
|
|
if( IDNO == MessageBox( hWnd, szPrompt, "Z3D", MB_YESNO | MB_ICONINFORMATION ) )
|
|
{
|
|
return DSETUPERR_USERHITCANCEL; // error : old ver. of DX installed but no direction of DX install
|
|
}
|
|
|
|
DWORD dwFlag = DSETUP_DIRECTX;
|
|
|
|
return DirectXSetup( hWnd, szDXFilePath, dwFlag );
|
|
}
|