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
|
@ -901,10 +901,6 @@ static void cfg_create_ini()
|
|||
"adjmouse=true\n"
|
||||
"fixchilds=1\n"
|
||||
"\n"
|
||||
"; Septerra Core\n"
|
||||
"[septerra]\n"
|
||||
"hook=2\n"
|
||||
"\n"
|
||||
"; Sim Copter\n"
|
||||
"[SimCopter]\n"
|
||||
"renderer=opengl\n"
|
||||
|
@ -1058,7 +1054,7 @@ static void cfg_create_ini()
|
|||
}
|
||||
}
|
||||
|
||||
static void cfg_init()
|
||||
void cfg_init()
|
||||
{
|
||||
/* get process filename and directory */
|
||||
if (GetModuleFileNameA(NULL, g_config.game_path, sizeof(g_config.game_path) - 1) > 0)
|
||||
|
|
|
@ -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