win-capture: Use full DLL path for inject helper

The inject helper should be able to specify the full path rather than
assume the path of the hook DLL.  This change allows us to modify the
hook's location.  This needs to be done because the hook needs to be
relocated to ProgramData to prevent the possibility of multiple Vulkan
capture hooks.
This commit is contained in:
jp9000
2020-02-27 05:14:48 -08:00
parent a20f1168a7
commit 72e770458f
2 changed files with 2 additions and 7 deletions

View File

@@ -930,7 +930,7 @@ static inline bool inject_hook(struct game_capture *gc)
} else {
info("using helper (%s hook)",
use_anticheat(gc) ? "compatibility" : "direct");
success = create_inject_process(gc, inject_path, hook_dll);
success = create_inject_process(gc, inject_path, hook_path);
}
cleanup: