Let cnc-ddraw create a new ddraw.ini if it doesn't exist
This commit is contained in:
parent
cb7fde77ea
commit
15cee173fc
4 changed files with 31 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue