win-capture: Add Vulkan capture

Co-authored-by: jp9000 <obs.jim@gmail.com>
Co-authored-by: jpark37 <jpark37@users.noreply.github.com>
This commit is contained in:
Matthieu Cunzi
2020-02-27 05:28:59 -08:00
committed by jp9000
parent 72e770458f
commit 74acbd7ed0
17 changed files with 2943 additions and 5 deletions

View File

@@ -893,23 +893,22 @@ static inline bool create_inject_process(struct game_capture *gc,
return success;
}
extern char *get_hook_path(bool b64);
static inline bool inject_hook(struct game_capture *gc)
{
bool matching_architecture;
bool success = false;
const char *hook_dll;
char *inject_path;
char *hook_path;
if (gc->process_is_64bit) {
hook_dll = "graphics-hook64.dll";
inject_path = obs_module_file("inject-helper64.exe");
} else {
hook_dll = "graphics-hook32.dll";
inject_path = obs_module_file("inject-helper32.exe");
}
hook_path = obs_module_file(hook_dll);
hook_path = get_hook_path(gc->process_is_64bit);
if (!check_file_integrity(gc, inject_path, "inject helper")) {
goto cleanup;