Ver Fonte

win-capture: Always copy file when debugging

Helps ensure that the hook can be debugged for things like vulkan
capture.
jp9000 há 5 anos atrás
pai
commit
e9b41e5fc5
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      plugins/win-capture/game-capture-file-init.c

+ 2 - 0
plugins/win-capture/game-capture-file-init.c

@@ -230,8 +230,10 @@ static bool update_hook_file(bool b64)
 	struct win_version_info ver_dst = {0};
 	if (!get_dll_ver(src, &ver_src))
 		return false;
+#ifndef _DEBUG
 	if (!get_dll_ver(dst, &ver_dst))
 		return false;
+#endif
 
 	/* if source is greater than dst, overwrite new file  */
 	while (win_version_compare(&ver_dst, &ver_src) < 0) {