Commit graph

542 commits

Author SHA1 Message Date
FunkyFr3sh
9ced91af14 add experimental wing32 hooks 2024-05-27 01:15:30 +02:00
FunkyFr3sh
5bbe1299d2 add test patches for Clue Finders 4th 2024-05-26 09:08:38 +02:00
FunkyFr3sh
2f2367e5b5 hook BitBlt 2024-05-25 07:29:30 +02:00
FunkyFr3sh
99e0cf8b4a log CreateWindowExA calls 2024-05-24 22:16:32 +02:00
FunkyFr3sh
283510f14c bump vesion 2024-05-24 05:19:12 +02:00
FunkyFr3sh
c1a14a31d5 add new setting to enable (very bugged) resize in wine 2024-05-24 02:26:46 +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
accfd91f98 bump version 2024-05-21 06:55:36 +02:00
FunkyFr3sh
43d4adf282 bump version 2024-05-18 08:47:54 +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
10f4d8b484 allow custom amount of framebuffers 2024-05-16 01:20:13 +02:00
FunkyFr3sh
32f508cba3 bump version 2024-05-13 05:18:25 +02:00
FunkyFr3sh
8262716194 bump version 2024-05-13 04:32:40 +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
175d2f5458 add inline functions for RTM versions 2024-05-10 07:05:51 +02:00
FunkyFr3sh
54d6ff5112 add support for woms 2 high resolution patch zoom 2024-05-08 05:54: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
cc97cc0761 bump version 2024-05-04 08:09:36 +02:00
FunkyFr3sh
2cbd9bba09 comment out non-working functions 2024-05-04 07:47:19 +02:00
FunkyFr3sh
64c4b73853 Add workaround for alt+tab issues on windows 7 SP1 (opengl) 2024-05-04 07:19:02 +02:00
FunkyFr3sh
aba07e00b4 bump version 2024-04-20 09:09:29 +02: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
978946a5d9 bump version 2024-03-20 21:51:23 +01:00
FunkyFr3sh
f57055fd8c add better forground window detection and always enable new GetKeyState hooks 2024-03-20 21:31:05 +01:00
FunkyFr3sh
871ccbf196 hook GetKeyState and GetAsyncKeyState for infantry 2024-03-20 05:35:36 +01:00
FunkyFr3sh
c15f02c27b bump version 2024-03-11 18:05:18 +01:00
FunkyFr3sh
82571fe8db #295 add workaround for Win11 steam RA2 crash 2024-03-11 17:48:27 +01:00
FunkyFr3sh
5082a40a3d fix debug build 2024-03-03 02:53:07 +01:00
FunkyFr3sh
9880c3899c bump version 2024-03-02 05:02:05 +01:00
FunkyFr3sh
5b3a7b4994 add debug code for possible DwmFlush failure 2024-02-25 23:46:32 +01:00
FunkyFr3sh
bc1bf81e15 bump version 2024-02-22 03:51:09 +01:00
FunkyFr3sh
b87e5b78fb bump version 2024-02-17 23:21:43 +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
4cb4ce60b1 bump version 2024-01-17 22:49:51 +01:00
FunkyFr3sh
1b86d1cc1c bump version 2024-01-12 00:34:59 +01:00
FunkyFr3sh
8fdfafc7e3 bump version 2024-01-09 20:48:28 +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
91796c71c1 set lpSurface on failure 2023-11-19 02:25:16 +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
8cfe73e834 bump version 2023-11-05 02:19:40 +01:00
FunkyFr3sh
5d6d0915b0 bump version 2023-11-04 05:25:05 +01:00
FunkyFr3sh
c1a0a3a046 bump version 2023-11-04 05:21:40 +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
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
f7a8f3a083 bump version 2023-10-21 06:29:13 +02:00
FunkyFr3sh
30023e00a8 bump version 2023-10-20 14:00:01 +02:00
FunkyFr3sh
ecc56d4cbc add some more error checks to IAT hooker 2023-10-20 10:19:46 +02:00
FunkyFr3sh
9b17a9cd46 add preset for vermeer 2023-10-20 03:59:35 +02:00
FunkyFr3sh
23f81c94f5 add ini_get_float function 2023-10-19 00:54:48 +02:00
FunkyFr3sh
e92e01ec97 bump version 2023-10-18 05:22:27 +02:00
FunkyFr3sh
a9445fb300 add new window message to toggle fullscreen/maximize 2023-10-18 05:22:06 +02:00
FunkyFr3sh
d7ed6bd7bc improve ini reader performance 2023-10-17 18:13:35 +02:00
FunkyFr3sh
c328ae9550 forward input to video window during video playback 2023-10-16 03:35:09 +02:00
FunkyFr3sh
94afdc378b #253 add preset for Jedi Knight Dark Forces 2 2023-10-16 01:02:42 +02:00
FunkyFr3sh
9256899b20 improve ini performance 2023-10-14 12:41:52 +02:00
FunkyFr3sh
995d1f294b #252 add presets for Nox 2023-10-14 05:00:27 +02:00
FunkyFr3sh
ba82f44562 bump version 2023-10-07 09:06:24 +02:00
FunkyFr3sh
24a73ccc6d #251 hook GetMessage for Enemy Infestation 2023-10-07 09:03:11 +02:00
FunkyFr3sh
be8bf853d0 bump version 2023-10-04 19:52:26 +02:00
FunkyFr3sh
5060752adb bump version 2023-10-02 02:12:47 +02:00
FunkyFr3sh
d8982faae7 bump version 2023-09-27 01:16:27 +02:00
FunkyFr3sh
e7867e1cd3 add new hook flag for local hooks 2023-09-26 10:42:43 +02:00
FunkyFr3sh
01f5efd734 bump version 2023-09-24 20:30:07 +02:00
FunkyFr3sh
90dd010bbf clean up config.c 2023-09-23 17:48:06 +02:00
FunkyFr3sh
b039d9d4d1 add cnc-ddraw version to log 2023-09-22 01:56:10 +02:00
FunkyFr3sh
fa8cdbd0df move all ini settings to c_config 2023-09-22 00:38:42 +02:00
FunkyFr3sh
b1600d5d51 rotate log every 100MB 2023-09-14 22:12:10 +02:00
FunkyFr3sh
accc47e377 fix cursor position issues with downscaling 2023-09-14 16:47:28 +02:00
FunkyFr3sh
c73d1c43f7 Revert "force "adjmouse = TRUE" when downscaling was detected"
This reverts commit f468788a9d.
2023-09-13 19:04:44 +02:00
FunkyFr3sh
f468788a9d force "adjmouse = TRUE" when downscaling was detected 2023-09-13 19:04:01 +02:00
FunkyFr3sh
77bd7aa3bb add hooks to fix blurry fonts 2023-09-08 18:22:37 +02:00
FunkyFr3sh
43fd64463b fix typo 2023-09-06 23:46:50 +02:00
FunkyFr3sh
d93a78b2a0 use shader for rgb555 color conversion 2023-09-06 22:46:43 +02:00
FunkyFr3sh
a059fabf89 comment out debug 2023-09-06 20:06:26 +02:00
FunkyFr3sh
60d85725f5 fix some compiler warnings 2023-09-06 20:06:03 +02:00
FunkyFr3sh
af75abf026 add hack for Metal Gear Solid 2023-08-31 19:30:51 +02:00
FunkyFr3sh
bae11e7f9f cleanup shader code 2023-08-31 02:46:04 +02:00
FunkyFr3sh
ccea9911b5 fix texture name 2023-08-29 18:27:47 +02:00
FunkyFr3sh
1cfa20802c add xBR-lv2 opengl shader 2023-08-29 18:24:32 +02:00
FunkyFr3sh
f85ffee65a remove duplicate shaders 2023-08-29 17:35:09 +02:00
FunkyFr3sh
9d37c7169f add Lanczos2 opengl shader 2023-08-26 22:02:21 +02:00
FunkyFr3sh
e9f1023a31 add option to select built-in opengl shaders 2023-08-26 21:28:53 +02:00
FunkyFr3sh
e2ed1930c3 add d3d9 lanczos2 shader 2023-08-23 16:44:14 +02:00
FunkyFr3sh
2a5bd91629 align 2023-08-23 02:08:24 +02:00
FunkyFr3sh
8e138829cd align 2023-08-23 02:01:21 +02:00
FunkyFr3sh
afb3d2dea3 fix bilinear shader (for real this time!) 2023-08-23 01:59:51 +02:00
FunkyFr3sh
b5be29f6f1 Revert "fix bilinear shader"
This reverts commit ceb3a88149.
2023-08-23 00:23:52 +02:00
FunkyFr3sh
ceb3a88149 fix bilinear shader 2023-08-22 22:38:26 +02:00
FunkyFr3sh
66e86aa37c replace IsIconic with custom function 2023-08-20 23:12:00 +02:00
FunkyFr3sh
b62b435c37 add workaround for westwood nox 2023-08-20 01:39:02 +02:00
FunkyFr3sh
2d41949f29 add custom resolution 1070x602 for Icewind Dale 2 widescreen patch 2023-08-19 18:19:30 +02:00
FunkyFr3sh
b25223bf3a #219 add new "refresh_rate" setting 2023-08-18 16:48:59 +02:00
FunkyFr3sh
e32fffef20 improve logs 2023-08-17 13:42:26 +02:00
FunkyFr3sh
9a1cd992fa add "remove_menu" option for LukaStorme 2023-08-10 19:47:20 +02:00
FunkyFr3sh
b54285d129 #231 add hack for stronghold 2023-08-07 10:15:52 +02:00
FunkyFr3sh
6c3790cd24 replace hook=3 with GetProcAddress hook 2023-08-06 09:09:38 +02:00
FunkyFr3sh
62688e93d4 revert changes 2023-08-05 05:02:49 +02:00
FunkyFr3sh
15cee173fc Let cnc-ddraw create a new ddraw.ini if it doesn't exist 2023-08-05 04:50:02 +02:00
FunkyFr3sh
e6b4eabe5b add __GNUC__ defines 2023-08-04 07:18:29 +02:00
FunkyFr3sh
ad1a35aa84 remove dinputhook setting 2023-08-02 17:09:01 +02:00
FunkyFr3sh
1452bbe598 remove early hook function 2023-08-02 15:15:44 +02:00
FunkyFr3sh
02dcfd96b6 remove accuratetimers setting 2023-08-01 13:47:27 +02:00
FunkyFr3sh
c384f6166e remove locktopleft setting 2023-08-01 07:11:23 +02:00
FunkyFr3sh
cddf2524d2 remove bpp setting 2023-08-01 03:06:09 +02:00
FunkyFr3sh
6989cb806e remove dinput_show_cursor setting 2023-07-31 10:42:02 +02:00
FunkyFr3sh
6170e267f2 remove gdilinear setting 2023-07-31 10:30:27 +02:00
FunkyFr3sh
63257823b1 remove dont_emulate_dc setting 2023-07-31 09:17:57 +02:00
FunkyFr3sh
2ee0767520 remove fpupreserve setting 2023-07-31 07:55:52 +02:00
FunkyFr3sh
ef9d5c350f remove d3d9_adapter setting 2023-07-31 07:46:19 +02:00
FunkyFr3sh
e42d000366 remove fixwndprochook setting 2023-07-31 07:33:57 +02:00
FunkyFr3sh
428acf24ba #189 fix freeze on loading screen 2023-07-29 06:19:30 +02:00
FunkyFr3sh
2e6dcb2906 add dinput curspr hack 2023-07-28 09:38:39 +02:00
FunkyFr3sh
a9418fc02a remove old setting 2023-07-27 07:48:23 +02:00
FunkyFr3sh
766e4b434c hook SetForegroundWindow for profile links 2023-07-17 21:57:00 +02:00
FunkyFr3sh
c1a9d72b68 Revert "update ShowWindow hook"
This reverts commit 19d1d4f942.
2023-07-11 02:33:06 +02:00
FunkyFr3sh
19d1d4f942 update ShowWindow hook 2023-07-10 22:08:50 +02:00
FunkyFr3sh
b600cb36ba tweak shaders 2023-07-07 02:29:51 +02:00
FunkyFr3sh
045ed051ea fix for opengl borderless mode 2023-07-07 01:24:16 +02:00
FunkyFr3sh
99c82aaad1 update opengl shaders 2023-07-06 19:45:15 +02:00
FunkyFr3sh
ed642b8c7e optimize shader 2023-07-06 18:49:13 +02:00
FunkyFr3sh
993ecf92c7 modify Catmull-Rom shader to use 5 taps 2023-07-06 07:53:09 +02:00
FunkyFr3sh
4ec4260f8e new .ini setting "d3d9_filter" 2023-07-04 20:13:49 +02:00
FunkyFr3sh
58fea73c9b enable catmull rom shader 2023-07-03 10:50:03 +02:00
FunkyFr3sh
e9a18548ed add d3d9 catmull rom shader 2023-07-03 10:23:37 +02:00
FunkyFr3sh
a02c7f3e68 new .ini setting #toggle_borderless 2023-07-03 05:13:47 +02:00
FunkyFr3sh
087f41ce11 hook SetUnhandledExceptionFilter for debug build 2023-06-29 21:13:04 +02:00
FunkyFr3sh
708ff015cd include catmull-rom shader and make it the default in case no shader files were found 2023-03-29 00:49:11 +02:00
FunkyFr3sh
5209952831 fix header 2023-03-24 22:45:30 +01:00
FunkyFr3sh
d366559506 #212 add temp hack for baldr force exe 2023-03-24 07:45:21 +01:00
FunkyFr3sh
86e3de4ad6 hook PeekMessageA for EV Nova 2023-02-27 18:25:28 +01:00
andrews05
8cd776abf7 OpenGL rgb555 support 2023-02-16 22:46:34 -08:00
FunkyFr3sh
56488f9dac Revert "always enable fixnotresponding patch"
This reverts commit a80ffeb7aa.
2023-01-17 04:46:24 +01:00
FunkyFr3sh
56299662aa add new option to limit game ticks via bltfast 2022-10-31 02:54:40 +01:00
FunkyFr3sh
a80ffeb7aa always enable fixnotresponding patch 2022-10-22 02:52:58 +02:00
FunkyFr3sh
8566355e0d rename var 2022-10-20 03:13:09 +02:00
FunkyFr3sh
0345cbdda3 only limit ticks in gui thread 2022-10-19 23:48:20 +02:00
FunkyFr3sh
24d66d8a30 hook GetForegroundWindow 2022-10-19 05:08:22 +02:00
FunkyFr3sh
876160cbb6 rename some vars 2022-10-19 03:20:31 +02:00
FunkyFr3sh
ab773f6469 hook GetTopWindow 2022-10-18 22:21:42 +02:00
FunkyFr3sh
1170d0dd12 #179 hook GetDiskFreeSpaceA 2022-10-15 18:28:23 +02:00
FunkyFr3sh
1fb996d8a2 limit available resolutions to avoid crashes (Infantry Online) 2022-10-11 23:13:04 +02:00
FunkyFr3sh
80bf433a2b hook StretchDIBits 2022-10-05 22:33:53 +02:00
FunkyFr3sh
2a8a5f85ec hook SetDIBitsToDevice 2022-10-03 12:19:15 +02:00
FunkyFr3sh
c9262a5ee9 hook stretchblt 2022-10-02 18:41:06 +02:00
FunkyFr3sh
1cbfe2d926 tweak clipper function logging 2022-10-02 14:47:46 +02:00
FunkyFr3sh
f83d8f7bad add some more debug logging 2022-09-30 14:27:41 +02:00
FunkyFr3sh
a3469be07a improve debug logs 2022-09-30 14:16:30 +02:00
FunkyFr3sh
5c0dc2753d remove bool and make guard lines adjustable 2022-09-29 21:52:07 +02:00
FunkyFr3sh
c7f971c0be add some more debug logging 2022-09-29 13:44:25 +02:00
FunkyFr3sh
11f1422acf #177 add preset for Fairy Tale About Father Frost, Ivan and Nastya 2022-09-28 04:19:09 +02:00
FunkyFr3sh
11801618df add (commented out) clipper support to dds_blt 2022-09-27 15:28:57 +02:00
FunkyFr3sh
24f6a020d5 #177 support 2 more clipper functions - GetClipList and SetClipList - clipping not supported yet in dd_blt! 2022-09-27 13:56:36 +02:00
FunkyFr3sh
a8b3b1c736 add GetHWnd and SetHWnd clipper functions 2022-09-26 22:22:15 +02:00
FunkyFr3sh
1186c9cc00 add option to create opengl core context 2022-09-24 01:41:18 +02:00
FunkyFr3sh
d54011973f add option to change d3d9 adapter 2022-09-24 01:12:53 +02:00
FunkyFr3sh
415f74887f try to avoid d3d9_release to workaround nvidia bug 2022-09-23 02:17:33 +02:00
FunkyFr3sh
bd697e7b7a fix function name 2022-09-21 16:37:13 +02:00
FunkyFr3sh
d18df5faf1 #172 Add support for SetSurfaceDesc (Nancy Drew: Stay Tuned For Danger) 2022-09-21 16:07:32 +02:00
FunkyFr3sh
5616af006b add option to enable direct3d 12 renderer (via MS 9on12) 2022-09-20 11:21:32 +02:00
FunkyFr3sh
1b791fb2cb only lock cursor in borderless if game window is the foreground window 2022-09-20 08:59:36 +02:00
FunkyFr3sh
6372dc6884 add AVX memset 2022-09-20 02:27:01 +02:00
FunkyFr3sh
f4ee6128c4 detect if AVX is supported 2022-09-19 13:13:34 +02:00
FunkyFr3sh
e8acc35f0d add AVX test code 2022-09-18 19:02:15 +02:00
FunkyFr3sh
8d6b2f3bfe add option to lock surfaces 2022-09-17 13:46:45 +02:00
FunkyFr3sh
8a63e2b976 allocate memory with CreateFileMapping 2022-09-16 11:22:05 +02:00
FunkyFr3sh
5a9284a44e save and pass DDSD_BACKBUFFERCOUNT 2022-09-15 10:21:33 +02:00
FunkyFr3sh
edf69fcc2a add support for DDSD_LPSURFACE and DDSD_PITCH 2022-09-15 10:10:52 +02:00
FunkyFr3sh
0133030c6a add memset blt_clear wrapper 2022-09-15 02:12:27 +02:00
FunkyFr3sh
a2475ed259 replace blt_stretch 2022-09-13 15:51:14 +02:00
FunkyFr3sh
dc0204cf71 remove fixpitch setting 2022-09-13 09:34:48 +02:00
FunkyFr3sh
b03600fb4f #101 clear backbuffer on flip 2022-09-13 07:41:01 +02:00
FunkyFr3sh
21ccd1547f fix build for newer SDK versions 2022-09-11 07:34:40 +02:00
FunkyFr3sh
e578df74e3 make fixpitch setting working with primary surface too 2022-09-09 12:57:05 +02:00
FunkyFr3sh
10d0477cbd add color conversion blitters 2022-09-09 10:44:04 +02:00
FunkyFr3sh
c21123b606 specify full path to ddraw.ini in case of bad working dir 2022-09-08 04:20:51 +02:00
FunkyFr3sh
0997f514c4 separate blitters into a different file 2022-09-08 02:19:15 +02:00
FunkyFr3sh
15221b3120 add crc32 for testing 2022-09-07 02:51:42 +02:00
FunkyFr3sh
294e8f7d34 #164 add preset for Atrox 2022-09-05 09:08:59 +02:00
FunkyFr3sh
b2d6e13ba8 #138 add preset for infantry online 2022-02-05 04:03:00 +01:00
FunkyFr3sh
c6a5603294 optional D3DCREATE_FPU_PRESERVE for dune2000 and other games that might need it 2021-12-18 04:59:25 +01:00
FunkyFr3sh
c36522d377 #133 add option to save screenshots in a different directory 2021-12-17 03:16:08 +01:00
FunkyFr3sh
b8fd6d1f81 #131 #125 add option to remove video memory flag 2021-12-17 02:41:02 +01:00
FunkyFr3sh
768a3aaa7f #117 add hotkey settings to .ini 2021-09-29 12:55:20 +02:00
FunkyFr3sh
f23a3e49ba #121 fix cursor lock for space rangers 2021-09-19 04:24:22 +02:00
FunkyFr3sh
09f57918cb fix ClipCursor for ja2 2021-09-19 03:04:45 +02:00
FunkyFr3sh
8702ffe44a make cfg ini functions public 2021-09-16 02:25:22 +02:00
FunkyFr3sh
58a86abfc8 add new .ini setting to force release alt key on alt+tab 2021-09-16 01:57:44 +02:00
FunkyFr3sh
ebda8282b2 #118 merge latest sir-tech fixes
(cherry picked from commit 994d4c646fafe58c49631283c72b755d81dbf865)
2021-09-16 01:47:14 +02:00
FunkyFr3sh
31119eacb8 #118 fix shaders with ja2 wildfire 2021-09-09 21:34:44 +02:00