Explorar o código

win-capture: Always copy file when debugging

Helps ensure that the hook can be debugged for things like vulkan
capture.
jp9000 %!s(int64=5) %!d(string=hai) anos
pai
achega
e9b41e5fc5
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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) {