From e9b41e5fc561c8756d142f423ed056ce7416945a Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 9 Mar 2020 02:49:06 -0700 Subject: [PATCH] win-capture: Always copy file when debugging Helps ensure that the hook can be debugged for things like vulkan capture. --- plugins/win-capture/game-capture-file-init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/win-capture/game-capture-file-init.c b/plugins/win-capture/game-capture-file-init.c index 3d183dc82..77790615d 100644 --- a/plugins/win-capture/game-capture-file-init.c +++ b/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) {