Commit graph

1620 commits

Author SHA1 Message Date
FunkyFr3sh
ed0f9ccbc9 fix warnings 2024-05-27 05:31:25 +02:00
FunkyFr3sh
b219aca166 update debug code 2024-05-27 05:17:57 +02:00
FunkyFr3sh
3ca9883723 disable CF hack for now 2024-05-27 05:16:04 +02:00
FunkyFr3sh
103f78276b make clipper threadsafe for TA 2024-05-27 05:01:54 +02:00
FunkyFr3sh
009bc4e2e8 send WM_ACTIVATEAPP only once 2024-05-27 04:34:28 +02:00
FunkyFr3sh
c0d8c77f90 set and restore mode 2024-05-27 04:02:48 +02:00
FunkyFr3sh
f2bee3d0d2 adjust gdi hooks 2024-05-27 03:28:35 +02:00
FunkyFr3sh
0fa70b5c38 add presets for Reader Rabbit games 2024-05-27 01:52:44 +02:00
FunkyFr3sh
9ced91af14 add experimental wing32 hooks 2024-05-27 01:15:30 +02:00
FunkyFr3sh
bbab7a018a add presets for other learning company games 2024-05-26 22:59:07 +02:00
FunkyFr3sh
98363a85c2 add oreset for ClueFinders 4th 2024-05-26 20:06:48 +02:00
FunkyFr3sh
490969356f use RGN_OR 2024-05-26 09:32:00 +02:00
FunkyFr3sh
63033840d9 improve error checks 2024-05-26 09:29:14 +02:00
FunkyFr3sh
5bbe1299d2 add test patches for Clue Finders 4th 2024-05-26 09:08:38 +02:00
FunkyFr3sh
10ec35d458 fix alignment 2024-05-26 02:02:00 +02:00
FunkyFr3sh
2f2367e5b5 hook BitBlt 2024-05-25 07:29:30 +02:00
FunkyFr3sh
17a4dde30a log return value of CreateWindowExA 2024-05-25 03:30:51 +02:00
FunkyFr3sh
99e0cf8b4a log CreateWindowExA calls 2024-05-24 22:16:32 +02:00
FunkyFr3sh
0858392484 simplify GetAttachedSurface 2024-05-24 04:55:55 +02:00
FunkyFr3sh
c1a14a31d5 add new setting to enable (very bugged) resize in wine 2024-05-24 02:26:46 +02:00
FunkyFr3sh
1d4403db57 fix name 2024-05-23 08:41:33 +02:00
FunkyFr3sh
eed6edfa4e add preset for nonplus jjr2 2024-05-23 08:39:27 +02:00
FunkyFr3sh
c540a1e45c #314 add preset for JazzJackrabbit2 2024-05-23 08:20:14 +02:00
FunkyFr3sh
a3afe9e598 fix crash in JazzJackrabbit 2 2024-05-23 07:12:33 +02:00
FunkyFr3sh
0cf0533654 #313 Add partial support for American Girls Dress Designer (Fullscreen only, no upscaling) 2024-05-22 23:51:48 +02:00
FunkyFr3sh
504c2eb1c5 add new setting to fake current display mode 2024-05-22 23:23:27 +02:00
FunkyFr3sh
c18223e80a #292 fix mousei input issues in diablo 1 2024-05-22 04:38:10 +02:00
FunkyFr3sh
07f11bf577 keep commented out debug code 2024-05-21 07:03:58 +02:00
FunkyFr3sh
b55593cb4c #311 fix fullscreen issues with opengl/gdi in nancy drew games 2024-05-21 06:55:23 +02:00
FunkyFr3sh
4e1b52b97e #311 add preset for Nancy Drew: Message in a Haunted Mansion 2024-05-21 06:03:22 +02:00
FunkyFr3sh
6b1f08e108 export DDGetProcAddress so fan patched games have access to the real GetProcAddress 2024-05-19 06:02:21 +02:00
FunkyFr3sh
2b7699ffdf add fsr to known upscalers list 2024-05-18 07:23:09 +02:00
FunkyFr3sh
ec48aac4f9 add missing frame counter 2024-05-18 06:20:13 +02:00
FunkyFr3sh
6fbdf136a9 add support for AMD FidelityFX™ Super Resolution (FSR), xBRZ-multipass and other 2-pass shaders 2024-05-18 05:19:55 +02:00
FunkyFr3sh
d2d0be1264 don't hook new mesa3d libs 2024-05-16 21:08:47 +02:00
FunkyFr3sh
10f4d8b484 allow custom amount of framebuffers 2024-05-16 01:20:13 +02:00
FunkyFr3sh
fdcf9a7d1a #309 Fix for Nancy Draw: Last Train to Blue Moon Canyon "SetSurfaceDesc() error" 2024-05-13 05:45:50 +02:00
FunkyFr3sh
5eb1f00b9f #309 Add possible fix for Nancy Draw: Last Train to Blue Moon Canyon SetSurfaceDesc() error 2024-05-13 05:14:07 +02:00
FunkyFr3sh
8de39f6590 enable vhack by default for worms 2 2024-05-13 04:21:54 +02:00
FunkyFr3sh
70f0264b19 add preset for new FreeInfantry.exe 2024-05-13 03:05:31 +02:00
FunkyFr3sh
9897ffbd57 remove old WM_MOVE hack 2024-05-13 03:03:44 +02:00
FunkyFr3sh
518b940365 add hack for games that require the cursor to be in the exact center of the screen (Worms 2 / Atlantis) 2024-05-12 21:35:28 +02:00
FunkyFr3sh
c90af52dac remove unused psapi header 2024-05-10 02:43:40 +02:00
FunkyFr3sh
47e1af94d0 fix warning with gcc 2024-05-10 00:03:14 +02:00
FunkyFr3sh
da3de43f44 enable d3d9 filter for vhack 2024-05-09 22:17:27 +02:00
FunkyFr3sh
5a3e1ad49b update vhack comments with worms2 support 2024-05-09 22:16:29 +02:00
FunkyFr3sh
b8632698a4 tweak low res function checks 2024-05-08 09:04:19 +02:00
FunkyFr3sh
91cad99b6f add addiotional null check 2024-05-08 07:35:47 +02:00
FunkyFr3sh
38b553191f allow zooming on low resolutions as well (worms2) 2024-05-08 07:17:54 +02:00
FunkyFr3sh
d97dd8e106 fix warning 2024-05-08 07:10:35 +02:00
FunkyFr3sh
54d6ff5112 add support for woms 2 high resolution patch zoom 2024-05-08 05:54:56 +02:00
FunkyFr3sh
8326407a64 set DDSD_CKSRCBLT on SetColorKey 2024-05-08 03:30:18 +02:00
FunkyFr3sh
1c9b39a1fd set color key on GetSurfaceDesc 2024-05-08 01:47:56 +02:00
FunkyFr3sh
57a98d667d add additonoal windows version check fucntions 2024-05-06 02:56:40 +02:00
FunkyFr3sh
e18eb931eb use inline functions for WINE checks 2024-05-06 02:00:58 +02:00
FunkyFr3sh
6626480358 extend versionhelpers 2024-05-06 01:23:59 +02:00
FunkyFr3sh
64c4b73853 Add workaround for alt+tab issues on windows 7 SP1 (opengl) 2024-05-04 07:19:02 +02:00
FunkyFr3sh
8d97550c2b Revert "Fix alt+tab issues on windows 7 (opengl + aero)"
This reverts commit a6e7b5f235.
2024-05-04 06:34:37 +02:00
FunkyFr3sh
a6e7b5f235 Fix alt+tab issues on windows 7 (opengl + aero) 2024-05-04 01:45:41 +02:00
FunkyFr3sh
18eddc7f7f adjust preset to fix graphical glitches with worms 2 high resolution patch 2024-05-02 05:54:00 +02:00
FunkyFr3sh
c61389d105 remove unnecessary clears on flip 2024-05-02 05:53:29 +02:00
FunkyFr3sh
b0fb8d0be7 hook SetUnhandledExceptionFilter for mingw debug build 2024-04-26 02:02:06 +02:00
FunkyFr3sh
4b7fe8531e fix mingw debug build 2024-04-26 01:41:38 +02:00
FunkyFr3sh
b34ec49a13 handle "AVI Window" in StretchDIBits as well 2024-04-26 01:27:34 +02:00
FunkyFr3sh
36ae25ea89 #306 adjust road rash preset 2024-04-26 01:23:28 +02:00
FunkyFr3sh
6ddc2ad00b #306 support cutscene upscaling for road rash 2024-04-26 01:13:50 +02:00
FunkyFr3sh
a2ef373871 #306 partial support for road rash upscaling 2024-04-26 00:26:36 +02:00
FunkyFr3sh
ec648669ef add partial support for menus in fullscreen via nonexclusive=true 2024-04-20 04:41:04 +02:00
FunkyFr3sh
f735ef839c #305 add support for window menu in borderless mode 2024-04-20 00:34:46 +02:00
FunkyFr3sh
18c15280ba #304 add a check for CW_USEDEFAULT just to be sure 2024-04-16 03:11:33 +02:00
FunkyFr3sh
36bf42af6f allow negative values for window width/height 2024-04-16 02:54:40 +02:00
FunkyFr3sh
6dc8390fed #304 - Limit window size to max surface size (Dune2000 1.02) 2024-04-16 02:48:15 +02:00
FunkyFr3sh
9d4f3b148b add position check to make sure we'll only resize on first start 2024-04-12 01:37:44 +02:00
FunkyFr3sh
3a52a07ba6 add (commented out) code to adjust the zone list size on first start 2024-04-12 01:25:00 +02:00
FunkyFr3sh
3089c8872d fix some warnings 2024-04-11 04:10:33 +02:00
FunkyFr3sh
86c86999d0 remove Win2000 build since it doesn't actualyl work on windows 2000 2024-03-29 21:36:25 +01:00
FunkyFr3sh
e893532562 fix build on linux 2024-03-28 23:11:18 +01:00
FunkyFr3sh
b89b184ce0 don't force devmode on for infantry (keep it for zone list only) 2024-03-28 17:48:31 +01:00
FunkyFr3sh
75f5c24305 fix for last commit 2024-03-25 02:50:55 +01:00
FunkyFr3sh
ed7296220b Disable ALT+ENTER on Infantry Online Zone List Window for now 2024-03-25 01:41:02 +01:00
FunkyFr3sh
36a87419e3 don't allocate ddraw struct 2024-03-22 22:27:00 +01:00
FunkyFr3sh
d69a56c0d0 add some more debug logging to dd_EnumDisplayModes 2024-03-22 04:36:30 +01:00
FunkyFr3sh
f57055fd8c add better forground window detection and always enable new GetKeyState hooks 2024-03-20 21:31:05 +01:00
FunkyFr3sh
c8d4cd997e use real_ functions 2024-03-20 05:41:42 +01:00
FunkyFr3sh
871ccbf196 hook GetKeyState and GetAsyncKeyState for infantry 2024-03-20 05:35:36 +01:00
FunkyFr3sh
c52544ad6f fix keyboard not working with devmode TRUE 2024-03-18 00:37:18 +01:00
FunkyFr3sh
82571fe8db #295 add workaround for Win11 steam RA2 crash 2024-03-11 17:48:27 +01:00
FunkyFr3sh
f2d1e9e3e6 log d3d9on12 module ptr 2024-03-10 16:56:46 +01:00
FunkyFr3sh
951871669c Revert "make sure you can host "no-hd" games with 640x480"
This reverts commit 488bad66d8.
2024-03-09 21:38:24 +01:00
FunkyFr3sh
488bad66d8 make sure you can host "no-hd" games with 640x480 2024-03-09 21:33:38 +01:00
FunkyFr3sh
6cc99330bd fix screenshot names 2024-03-07 17:45:04 +01:00
FunkyFr3sh
9e000720e4 fix screenshot names 2024-03-07 17:42:15 +01:00
FunkyFr3sh
5082a40a3d fix debug build 2024-03-03 02:53:07 +01:00
FunkyFr3sh
5b3a7b4994 add debug code for possible DwmFlush failure 2024-02-25 23:46:32 +01:00
FunkyFr3sh
eca7dde89e fix videos in wine 2024-02-17 23:18:42 +01:00
FunkyFr3sh
caa06c77c0 set g_ddraw_module right away 2024-02-17 18:11:58 +01:00
FunkyFr3sh
194fb5e371 add ChangeDisplaySettings(NULL, 0); just to be sure 2024-02-17 06:33:56 +01:00
FunkyFr3sh
0f20a1a25f fix wayland bug (linux) 2024-02-17 06:27:18 +01:00
FunkyFr3sh
9ba2a78588 keep subdir change but revert to using ddraw.ini filename 2024-02-16 21:12:58 +01:00
egornovivan
d70d316c7e Added support for subdir and sync of dll and ini names
https://github.com/FunkyFr3sh/cnc-ddraw/issues/287
2024-02-16 22:55:17 +05:00
FunkyFr3sh
d147e91630 adjust default shader path 2024-02-08 22:54:16 +01:00
FunkyFr3sh
0c5c9acecf test 2024-02-03 21:44:15 +01:00
FunkyFr3sh
cfc5441994 update nova preset to support the new CE release (Fixes open pilot menu) 2024-02-01 18:19:46 +01:00
FunkyFr3sh
8a66959df9 #270 make sure framebuffer is initialized with surface_tex 2024-01-10 04:34:42 +01:00
FunkyFr3sh
3212dad148 fix palette in bmp screenshots 2024-01-09 21:09:47 +01:00
FunkyFr3sh
7002639452 #273 use 64bit aligned pitch 2024-01-09 20:44:04 +01:00
FunkyFr3sh
8d24dde49c more maintas tweaks 2023-12-31 04:45:14 +01:00
FunkyFr3sh
3e4833bda7 some more maintas tweaks 2023-12-31 04:35:08 +01:00
FunkyFr3sh
a863d8cb33 fix aspect ratio issues 2023-12-31 04:16:45 +01:00
FunkyFr3sh
2cbf45cc2f add missing roundf 2023-12-30 22:16:55 +01:00
FunkyFr3sh
988cad0200 use roundf for maintas 2023-12-29 01:40:49 +01:00
FunkyFr3sh
ff1c8fb0a3 Revert "Use double for maintas"
This reverts commit 6eec244378.
2023-12-29 01:35:44 +01:00
FunkyFr3sh
9e8f24f38d add preset for worms 2 2023-12-17 17:03:05 +01:00
FunkyFr3sh
68fe009736 Revert "#270 always clear entire screen"
This reverts commit 564419562f.
2023-12-14 23:01:56 +01:00
FunkyFr3sh
564419562f #270 always clear entire screen 2023-12-13 00:28:13 +01:00
FunkyFr3sh
dc3be1243a #269 add workaround for Quest for Glory 5 movies 2023-12-12 00:39:25 +01:00
FunkyFr3sh
3ab1f7ff11 #267 allow to override .ini path via env var 2023-12-08 00:51:16 +01:00
FunkyFr3sh
c08ccb61c4 remove GetBltStatus from logs 2023-12-02 18:12:51 +01:00
FunkyFr3sh
91796c71c1 set lpSurface on failure 2023-11-19 02:25:16 +01:00
FunkyFr3sh
1e9f3a0ab8 fix custom resolution with high refresh rate monitors 2023-11-17 02:26:19 +01:00
FunkyFr3sh
434fb4de99 add support for alt+enter in fullscreen upscaled mode 2023-11-14 17:16:23 +01:00
FunkyFr3sh
ec36b6d7bc export DDIsWindowed function so fan patched games can query the windowed state 2023-11-13 00:18:17 +01:00
FunkyFr3sh
1443b13432 unlock cursor on dialog boxes in windowed mode 2023-11-05 02:17:39 +01:00
FunkyFr3sh
189ce11674 update atrox preset 2023-11-04 05:22:34 +01:00
FunkyFr3sh
d04f9d3fa3 make sure we always hook dinput 2023-11-04 05:09:06 +01:00
FunkyFr3sh
c43f38fad3 improve mingw build - always hook dinput 2023-11-04 04:45:41 +01:00
FunkyFr3sh
d95423f5e6 also check imported dlls for ddraw.dll import 2023-11-04 04:26:19 +01:00
FunkyFr3sh
b8cef05a9c make sure at least one function is imported 2023-11-04 04:16:59 +01:00
FunkyFr3sh
7ef71421b0 add option to apply wine specific settings 2023-11-04 04:08:51 +01:00
FunkyFr3sh
e9b585f440 move is_wine bool to g_config 2023-11-04 03:20:30 +01:00
FunkyFr3sh
f79b7db8cd add new .ini function ini_section_exists 2023-11-04 03:14:32 +01:00
FunkyFr3sh
c029c9c1e5 #262 add preset for gruntz 2023-11-04 02:56:15 +01:00
FunkyFr3sh
275e68137b tweak IAT hooker checks 2023-11-01 12:16:22 +01:00
FunkyFr3sh
f3cafda373 Merge branch 'master' of https://github.com/FunkyFr3sh/cnc-ddraw 2023-10-31 16:19:00 +01:00
FunkyFr3sh
1b00f02043 update atrox preset 2023-10-31 16:18:56 +01:00
andrews05
6eec244378 Use double for maintas 2023-10-31 18:39:55 +13:00
FunkyFr3sh
8d64f660ec hook only when a new module was loaded 2023-10-23 13:38:24 +02:00
FunkyFr3sh
df52dd869a improve IAT hook performance 2023-10-23 12:16:44 +02:00
FunkyFr3sh
bae707f865 use different function to enumarte modules for mingw build 2023-10-23 08:20:25 +02:00
FunkyFr3sh
589b422d93 fix some warnings 2023-10-22 11:46:13 +02:00
FunkyFr3sh
77319903fb remove unused var 2023-10-21 09:07:38 +02:00
FunkyFr3sh
64f58ef2d2 restore old bmp screenshot code as fallback solution 2023-10-21 08:55:28 +02:00
FunkyFr3sh
6513df2111 add NULL checks 2023-10-21 07:40:01 +02:00
FunkyFr3sh
26f3a0a5d2 add fallback solution for palette texture 2023-10-21 07:02:51 +02:00
FunkyFr3sh
6a4159d73e add fallback solution for 32bit texture format 2023-10-21 06:50:24 +02:00
FunkyFr3sh
5fc3764253 add fallback solution for rgb555 texture format issues 2023-10-21 06:27:59 +02:00
FunkyFr3sh
4da01c3683 fix util_is_bad_read_ptr 2023-10-20 14:51:19 +02:00
FunkyFr3sh
d194865299 update atrox preset 2023-10-20 12:26:39 +02:00
FunkyFr3sh
3d8e05996d add GNUC check 2023-10-20 11:05:11 +02:00
FunkyFr3sh
ed2fa9331a some more IAT hook tweaks 2023-10-20 10:42:15 +02:00