mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-14 22:03:27 +01:00
add support for 7th Legion
This commit is contained in:
parent
02f706e3bb
commit
6dcfe78398
@ -134,6 +134,7 @@ Wine (Linux/macOS/Android) only: override `ddraw` in [winecfg](https://wiki.wine
|
||||
- Cultures 2
|
||||
- Cyberchase Carnival Chaos
|
||||
- Cyberchase Castleblanca Quest
|
||||
- Cyber Gladiators (needs CyberGladiators_Patch_Win_EN_WinXP.zip)
|
||||
- Dark Earth
|
||||
- Dark Reign: The Future of War
|
||||
- Day Of The Tentacle
|
||||
|
@ -106,6 +106,7 @@ typedef struct CNCDDRAWCONFIG
|
||||
BOOL carma95_hack;
|
||||
BOOL sirtech_hack;
|
||||
BOOL flightsim98_hack;
|
||||
BOOL seventhlegion_hack;
|
||||
|
||||
} CNCDDRAWCONFIG;
|
||||
|
||||
|
@ -116,6 +116,7 @@ void cfg_load()
|
||||
GET_BOOL(g_config.carma95_hack, "carma95_hack", FALSE);
|
||||
GET_BOOL(g_config.sirtech_hack, "sirtech_hack", FALSE);
|
||||
GET_BOOL(g_config.flightsim98_hack, "flightsim98_hack", FALSE);
|
||||
GET_BOOL(g_config.seventhlegion_hack, "seventhlegion_hack", TRUE);
|
||||
|
||||
GameHandlesClose = GameHandlesClose || g_config.infantryhack;
|
||||
|
||||
@ -391,6 +392,11 @@ static void cfg_create_ini()
|
||||
"; The following settings override all settings shown above, section name = executable name\n"
|
||||
"\n"
|
||||
"\n"
|
||||
"; 7th Legion\n"
|
||||
"[legion]\n"
|
||||
"maxgameticks=25\n"
|
||||
"seventhlegion_hack=true\n"
|
||||
"\n"
|
||||
"; Atrox\n"
|
||||
"[Atrox]\n"
|
||||
"nonexclusive=true\n"
|
||||
|
@ -101,6 +101,9 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||
}
|
||||
case WM_NCHITTEST:
|
||||
{
|
||||
if (g_config.seventhlegion_hack)
|
||||
break;
|
||||
|
||||
LRESULT result = DefWindowProc(hWnd, uMsg, wParam, lParam);
|
||||
|
||||
if (!g_config.resizable)
|
||||
|
Loading…
x
Reference in New Issue
Block a user