set g_ddraw_module right away
This commit is contained in:
parent
194fb5e371
commit
caa06c77c0
1 changed files with 2 additions and 2 deletions
|
@ -26,6 +26,8 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
|
|||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
{
|
||||
g_ddraw_module = hDll;
|
||||
|
||||
if (GetEnvironmentVariableW(L"cnc_ddraw_config_init", NULL, 0))
|
||||
{
|
||||
cfg_load();
|
||||
|
@ -40,8 +42,6 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
|
|||
|
||||
cfg_load();
|
||||
|
||||
g_ddraw_module = hDll;
|
||||
|
||||
char buf[1024];
|
||||
|
||||
if (GetEnvironmentVariable("__COMPAT_LAYER", buf, sizeof(buf)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue