1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

don't hook Shw32

This commit is contained in:
FunkyFr3sh 2021-05-26 19:34:45 +02:00
parent a8359e8e77
commit ee1278d9ea

View File

@ -270,7 +270,9 @@ void hook_create(hook_list* hooks)
_splitpath(mod_path, NULL, mod_dir, mod_filename, NULL);
/* Don't hook reshade/swiftshader/mesa3d */
if (_strcmpi(mod_filename, "opengl32") == 0 || _strcmpi(mod_filename, "d3d9") == 0)
if (_strcmpi(mod_filename, "opengl32") == 0 ||
_strcmpi(mod_filename, "d3d9") == 0 ||
_strcmpi(mod_filename, "Shw32") == 0)
continue;
if (_strnicmp(game_dir, mod_dir, strlen(game_dir)) == 0)