Lines Matching defs:path
32 void PlatformShim::redirect_all_paths(fs::path const& path) {
33 redirect_category(path, ManifestCategory::implicit_layer);
34 redirect_category(path, ManifestCategory::explicit_layer);
35 redirect_category(path, ManifestCategory::icd);
74 D3DKMT_Adapter& D3DKMT_Adapter::add_driver_manifest_path(fs::path const& src) { return add_path(src, driver_paths); }
75 D3DKMT_Adapter& D3DKMT_Adapter::add_implicit_layer_manifest_path(fs::path const& src) {
78 D3DKMT_Adapter& D3DKMT_Adapter::add_explicit_layer_manifest_path(fs::path const& src) {
82 D3DKMT_Adapter& D3DKMT_Adapter::add_path(fs::path src, std::vector<std::wstring>& dest) {
108 void PlatformShim::set_fake_path([[maybe_unused]] ManifestCategory category, [[maybe_unused]] fs::path const& path) {}
109 void PlatformShim::add_known_path([[maybe_unused]] fs::path const& path) {}
111 void PlatformShim::add_manifest(ManifestCategory category, fs::path const& path) {
113 hkey_local_machine_settings.emplace_back(path.str());
115 hkey_local_machine_implicit_layers.emplace_back(path.str());
117 hkey_local_machine_explicit_layers.emplace_back(path.str());
119 hkey_local_machine_drivers.emplace_back(path.str());
123 void PlatformShim::add_unsecured_manifest(ManifestCategory category, fs::path const& path) {
125 hkey_current_user_settings.emplace_back(path.str());
127 hkey_current_user_implicit_layers.emplace_back(path.str());
129 hkey_current_user_explicit_layers.emplace_back(path.str());
140 void PlatformShim::set_app_package_path(fs::path const& path) {
141 app_package_path.resize(path.size());
142 MultiByteToWideChar(CP_UTF8, 0, path.c_str(), -1, &app_package_path[0], static_cast<int>(app_package_path.size()));
146 void PlatformShim::add_CM_Device_ID([[maybe_unused]] std::wstring const& id, [[maybe_unused]] fs::path const& icd_path,
147 [[maybe_unused]] fs::path const& layer_path) {
166 void PlatformShim::redirect_category(fs::path const&, ManifestCategory) {}
184 bool PlatformShim::is_fake_path(fs::path const& path) { return redirection_map.count(path.str()) > 0; }
185 fs::path const& PlatformShim::get_real_path_from_fake_path(fs::path const& path) { return redirection_map.at(path.str()); }
186 void PlatformShim::redirect_path(fs::path const& path, fs::path const& new_path) { redirection_map[path.str()] = new_path; }
187 void PlatformShim::remove_redirect(fs::path const& path) { redirection_map.erase(path.str()); }
189 bool PlatformShim::is_known_path(fs::path const& path) { return known_path_set.count(path.str()) > 0; }
190 void PlatformShim::add_known_path(fs::path const& path) { known_path_set.insert(path.str()); }
191 void PlatformShim::remove_known_path(fs::path const& path) { known_path_set.erase(path.str()); }
193 void PlatformShim::add_manifest([[maybe_unused]] ManifestCategory category, [[maybe_unused]] fs::path const& path) {}
194 void PlatformShim::add_unsecured_manifest([[maybe_unused]] ManifestCategory category, [[maybe_unused]] fs::path const& path) {}
201 void PlatformShim::redirect_category(fs::path const& new_path, ManifestCategory category) {
203 auto home = fs::path(get_env_var("HOME"));
238 for (auto& path : paths) {
239 if (!path.empty()) {
240 redirect_path(fs::path(path) / "vulkan" / category_path_name(category), new_path);
245 void PlatformShim::set_fake_path(ManifestCategory category, fs::path const& path) {
246 // use /etc as the 'redirection path' by default since its always searched
247 redirect_path(fs::path(SYSCONFDIR) / "vulkan" / category_path_name(category), path);
250 void PlatformShim::redirect_dlopen_name(fs::path const& filename, fs::path const& actual_path) {
254 bool PlatformShim::is_dlopen_redirect_name(fs::path const& filename) { return dlopen_redirection_map.count(filename.str()) == 1; }
256 fs::path PlatformShim::query_default_redirect_path(ManifestCategory category) {
257 return fs::path(SYSCONFDIR) / "vulkan" / category_path_name(category);