diff options
| author | swurl <swurl@swurl.xyz> | 2025-05-31 02:33:02 -0400 |
|---|---|---|
| committer | swurl <swurl@swurl.xyz> | 2025-05-31 02:33:02 -0400 |
| commit | 6c655321e6b04b8648802e296bb5ca11d290ae68 (patch) | |
| tree | 5c906511e4a2910ce8b806bb9d763b524c28619e /externals/libadrenotools/src/hook/hook_impl_params.h | |
| parent | c0cceff365f754f8859f4c9a0362ebdba7ea388b (diff) | |
Move dead submodules in-tree
Signed-off-by: swurl <swurl@swurl.xyz>
Diffstat (limited to 'externals/libadrenotools/src/hook/hook_impl_params.h')
| -rw-r--r-- | externals/libadrenotools/src/hook/hook_impl_params.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/externals/libadrenotools/src/hook/hook_impl_params.h b/externals/libadrenotools/src/hook/hook_impl_params.h new file mode 100644 index 0000000000..8a3bd1673e --- /dev/null +++ b/externals/libadrenotools/src/hook/hook_impl_params.h @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: BSD-2-Clause +// Copyright © 2021 Billy Laws + +#pragma once + +#include <string> +#include <adrenotools/priv.h> + +/** + * @brief Holds the parameters needed for all hooks + * @note See comments for adrenotools_open_libvulkan as a reference for member variables + */ +struct HookImplParams { + int featureFlags; + std::string tmpLibDir; + std::string hookLibDir; + std::string customDriverDir; + std::string customDriverName; + std::string fileRedirectDir; + adrenotools_gpu_mapping *nextGpuMapping; + + HookImplParams(int featureFlags, const char *tmpLibDir, const char *hookLibDir, const char *customDriverDir, + const char *customDriverName, const char *fileRedirectDir, adrenotools_gpu_mapping *nextGpuMapping) + : featureFlags(featureFlags), + tmpLibDir(tmpLibDir ? tmpLibDir : ""), + hookLibDir(hookLibDir), + customDriverDir(customDriverDir ? customDriverDir : ""), + customDriverName(customDriverName ? customDriverName : ""), + fileRedirectDir(fileRedirectDir ? fileRedirectDir : ""), + nextGpuMapping(nextGpuMapping) {} +}; |
