More registry features

This commit is contained in:
momo5502
2024-11-03 18:13:59 +01:00
parent 0fc4bd6066
commit 63089c2e1a
2 changed files with 74 additions and 5 deletions

View File

@@ -102,6 +102,14 @@ void registry_manager::add_path_mapping(const std::filesystem::path& key, const
std::optional<registry_key> registry_manager::get_key(const std::filesystem::path& key)
{
const auto normal_key = this->normalize_path(key);
if (is_subpath(normal_key, "\\registry\\machine"))
{
registry_key reg_key{};
reg_key.hive = normal_key;
return { std::move(reg_key) };
}
const auto iterator = this->find_hive(normal_key);
if (iterator == this->hives_.end())
{