1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-25 01:57:47 +01:00

add presets for madeline math + adds new seetings to disable compat mode warnings

This commit is contained in:
FunkyFr3sh 2024-05-30 07:20:44 +02:00
parent e7bd262681
commit e3314c0b48
4 changed files with 40 additions and 1 deletions

View File

@ -192,6 +192,8 @@ Some games may require additional steps before they can be used with cnc-ddraw,
- Lionheart - Legacy of the Crusader - Lionheart - Legacy of the Crusader
- Locomotion - Locomotion
- Lode Runner 2 - Lode Runner 2
- Madeline 1st Grade Math
- Madeline 2nd Grade Math
- Majesty Gold - Majesty Gold
- Majesty Gold HD - Majesty Gold HD
- Mech Warrior 3 - Mech Warrior 3

View File

@ -79,6 +79,7 @@ typedef struct CNCDDRAWCONFIG
char fake_mode[128]; char fake_mode[128];
BOOL wine_allow_resize; BOOL wine_allow_resize;
BOOL lock_mouse_top_left; BOOL lock_mouse_top_left;
BOOL no_compat_warning;
/* Hotkeys */ /* Hotkeys */

View File

@ -92,6 +92,7 @@ void cfg_load()
GET_STRING("fake_mode", "", g_config.fake_mode, sizeof(g_config.fake_mode)); GET_STRING("fake_mode", "", g_config.fake_mode, sizeof(g_config.fake_mode));
GET_BOOL(g_config.wine_allow_resize, "wine_allow_resize", FALSE); GET_BOOL(g_config.wine_allow_resize, "wine_allow_resize", FALSE);
GET_BOOL(g_config.lock_mouse_top_left, "lock_mouse_top_left", FALSE); GET_BOOL(g_config.lock_mouse_top_left, "lock_mouse_top_left", FALSE);
GET_BOOL(g_config.no_compat_warning, "no_compat_warning", FALSE);
/* Hotkeys */ /* Hotkeys */
@ -310,6 +311,7 @@ static void cfg_create_ini()
";fake_mode=640x480x32\n" ";fake_mode=640x480x32\n"
"wine_allow_resize=false\n" "wine_allow_resize=false\n"
"lock_mouse_top_left=false\n" "lock_mouse_top_left=false\n"
"no_compat_warning=false\n"
"\n" "\n"
"\n" "\n"
"\n" "\n"
@ -1020,6 +1022,39 @@ static void cfg_create_ini()
"[Lionheart]\n" "[Lionheart]\n"
"hook_peekmessage=true\n" "hook_peekmessage=true\n"
"\n" "\n"
"; Madeline 1st Grade Math\n"
"[madmath1]\n"
"nonexclusive=true\n"
"no_compat_warning=true\n"
"adjmouse=false\n"
"width=0\n"
"height=0\n"
"resizable=false\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Madeline 1st Grade Math: Progress Report\n"
"[madpr]\n"
"nonexclusive=true\n"
"no_compat_warning=true\n"
"adjmouse=false\n"
"width=0\n"
"height=0\n"
"resizable=false\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Madeline 2nd Grade Math\n"
"[madmath2]\n"
"nonexclusive=true\n"
"no_compat_warning=true\n"
"adjmouse=false\n"
"width=0\n"
"height=0\n"
"resizable=false\n"
"maintas=false\n"
"boxing=false\n"
"\n"
"; Majesty Gold\n" "; Majesty Gold\n"
"[Majesty]\n" "[Majesty]\n"
"minfps=-2\n" "minfps=-2\n"

View File

@ -72,7 +72,8 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
"then try to start the game again.", "then try to start the game again.",
s); s);
MessageBoxA(NULL, mes, "Compatibility modes detected - cnc-ddraw", MB_OK); if (!g_config.no_compat_warning)
MessageBoxA(NULL, mes, "Compatibility modes detected - cnc-ddraw", MB_OK);
break; break;
} }