Let cnc-ddraw create a new ddraw.ini if it doesn't exist

This commit is contained in:
FunkyFr3sh 2023-08-05 04:50:02 +02:00
parent cb7fde77ea
commit 15cee173fc
4 changed files with 31 additions and 5 deletions

View file

@ -22,6 +22,9 @@ HMODULE g_ddraw_module;
BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (GetEnvironmentVariableW(L"cnc_ddraw_config_init", NULL, 0))
return TRUE;
switch (dwReason)
{
case DLL_PROCESS_ATTACH: